]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: drop redundant null-pointer check in mwifiex_dnld_cmd_to_fw()
authorTuo Li <islituo@gmail.com>
Wed, 4 Aug 2021 02:03:05 +0000 (19:03 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 21 Aug 2021 17:49:20 +0000 (20:49 +0300)
commit261704d5424081ca332875b4a977fa0d81523a64
tree912a0dc6e1acd982e0c4629bc77011553f7f4578
parentd77c184bad63401e6269583c7a5f004490bc4431
mwifiex: drop redundant null-pointer check in mwifiex_dnld_cmd_to_fw()

There is no case in which the variable cmd_node->cmd_skb has no ->data,
and thus the variable host_cmd is guaranteed to be not NULL. Therefore,
the null-pointer check is redundant and can be dropped.

Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Tuo Li <islituo@gmail.com>
Tested-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210804020305.29812-1-islituo@gmail.com
drivers/net/wireless/marvell/mwifiex/cmdevt.c