mwifiex: remove unnecessary NULL check
authorXinming Hu <huxm@marvell.com>
Fri, 9 Oct 2015 11:26:35 +0000 (04:26 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 14 Oct 2015 11:22:08 +0000 (14:22 +0300)
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>
drivers/net/wireless/mwifiex/wmm.c

index 57c13ec..acccd67 100644 (file)
@@ -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)