Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Xinming Hu and committed by
Kalle Valo
8785955b fe24372d

+1 -1
+1 -1
drivers/net/wireless/mwifiex/wmm.c
··· 684 684 if (!memcmp(ra_list->ra, mac, ETH_ALEN)) 685 685 continue; 686 686 687 - if (ra_list && ra_list->tx_paused != tx_pause) { 687 + if (ra_list->tx_paused != tx_pause) { 688 688 pkt_cnt += ra_list->total_pkt_count; 689 689 ra_list->tx_paused = tx_pause; 690 690 if (tx_pause)