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....@gmail.com>
---
Changes in v2:
        Delete unnecessary line added in a previous version, noted
        by Julia Lawall <julia.law...@lip6.fr>

 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 54741bb..eb05e03 100644
--- a/drivers/staging/wlags49_h2/wl_netdev.c
+++ b/drivers/staging/wlags49_h2/wl_netdev.c
@@ -1774,7 +1774,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 = dev->priv;
+       if ((lp != NULL) &&
                !(lp->flags & WVLAN2_UIL_BUSY)) {
 
 #ifdef USE_RTS
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to