From 0d0560e25b4a92f7eedef4deb13ec4ab954b7c28 Mon Sep 17 00:00:00 2001 From: Jelena Bjelja Date: Wed, 19 Mar 2014 19:46:06 +0100 Subject: [PATCH] staging: wlags49_h2: Do not use assignment in if condition Fix the following checkpatch.pl issue in wl_netdev.c: ERROR: do not use assignment in if condition Signed-off-by: Jelena Bjelja Signed-off-by: Greg Kroah-Hartman --- drivers/staging/wlags49_h2/wl_netdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wlags49_h2/wl_netdev.c b/drivers/staging/wlags49_h2/wl_netdev.c index 0e553ae5f375..9b6fc4169308 100644 --- a/drivers/staging/wlags49_h2/wl_netdev.c +++ b/drivers/staging/wlags49_h2/wl_netdev.c @@ -1819,7 +1819,8 @@ int wl_rx_dma(struct net_device *dev) DBG_PARAM(DbgInfo, "dev", "%s (0x%p)", dev->name, dev); - if (((lp = dev->priv) != NULL) && !(lp->flags & WVLAN2_UIL_BUSY)) { + lp = dev->priv; + if ((lp != NULL) && !(lp->flags & WVLAN2_UIL_BUSY)) { #ifdef USE_RTS if (lp->useRTS == 1) { -- 2.20.1