staging: wlags49_h2: Do not use assignment in if condition
authorJelena Bjelja <jelena.bjelja.ing@gmail.com>
Wed, 19 Mar 2014 18:46:06 +0000 (19:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Mar 2014 20:52:05 +0000 (13:52 -0700)
Fix the following checkpatch.pl issue in wl_netdev.c:
ERROR: do not use assignment in if condition

Signed-off-by: Jelena Bjelja <jelena.bjelja.ing@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlags49_h2/wl_netdev.c

index 0e553ae5f37594ac350f91092f6f43eeedac4829..9b6fc4169308f671c9c4ec7c5f0a537db49f6a18 100644 (file)
@@ -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) {