diff options
author | Xinming Hu <huxm@marvell.com> | 2015-10-09 04:26:35 -0700 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-10-14 14:22:08 +0300 |
commit | 8785955bbc28be446bcb2ad08cfb0599246746f7 (patch) | |
tree | 6f2aee9ecfe41660c84a5bcabc8a1561faebfde1 /drivers/net/wireless/mwifiex | |
parent | fe24372d1b115863905174aa3c9f988c1eb40630 (diff) | |
download | blackbird-obmc-linux-8785955bbc28be446bcb2ad08cfb0599246746f7.tar.gz blackbird-obmc-linux-8785955bbc28be446bcb2ad08cfb0599246746f7.zip |
mwifiex: remove unnecessary NULL check
ra_list cannot be NULL here, so remove the unnecessary NULL check.
Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mwifiex')
-rw-r--r-- | drivers/net/wireless/mwifiex/wmm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/wmm.c b/drivers/net/wireless/mwifiex/wmm.c index 57c13ec3d3de..acccd6734e3b 100644 --- a/drivers/net/wireless/mwifiex/wmm.c +++ b/drivers/net/wireless/mwifiex/wmm.c @@ -684,7 +684,7 @@ void mwifiex_update_ralist_tx_pause_in_tdls_cs(struct mwifiex_private *priv, if (!memcmp(ra_list->ra, mac, ETH_ALEN)) continue; - if (ra_list && ra_list->tx_paused != tx_pause) { + if (ra_list->tx_paused != tx_pause) { pkt_cnt += ra_list->total_pkt_count; ra_list->tx_paused = tx_pause; if (tx_pause) |