diff options
author | Jelena Bjelja <jelena.bjelja.ing@gmail.com> | 2014-03-19 19:46:06 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-19 13:52:05 -0700 |
commit | 0d0560e25b4a92f7eedef4deb13ec4ab954b7c28 (patch) | |
tree | b27af2507800a93a425af24708f7e72118660d3c /drivers/staging/wlags49_h2/wl_netdev.c | |
parent | 877ba1eff2e30db7f88755bd217207c52679d2f5 (diff) |
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 <jelena.bjelja.ing@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlags49_h2/wl_netdev.c')
-rw-r--r-- | drivers/staging/wlags49_h2/wl_netdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |