]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: assume vif is NULL for internal scans and non-NULL otherwise
authorJohn W. Linville <linville@tuxdriver.com>
Thu, 22 Jul 2010 19:24:56 +0000 (15:24 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Jul 2010 19:09:04 +0000 (15:09 -0400)
commitb299208785b6940bdd308e8250d693e57e1dd01a
tree7e7efffaabb483101a3b544a2fd8e49eeb5016a7
parentd24a2153763a2ee0cbb94623b241a53aec8b54f0
iwlwifi: assume vif is NULL for internal scans and non-NULL otherwise

The current practice of checking vif for NULL in one place but not
another seems to confuse some static checkers, smatch in particular.
Since vif will only be NULL in the case of internal scans, adjust the
checks accordingly.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-lib.c
drivers/net/wireless/iwlwifi/iwl3945-base.c