From: Jelena Bjelja Date: Wed, 19 Mar 2014 18:46:06 +0000 (+0100) Subject: staging: wlags49_h2: Do not use assignment in if condition X-Git-Tag: MMI-PSA29.97-13-9~12500^2~18 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0d0560e25b4a92f7eedef4deb13ec4ab954b7c28;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- 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) {