]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.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)
commita6e492b9b5d323ca391312b981a5017e450132c0
tree7e7efffaabb483101a3b544a2fd8e49eeb5016a7
parent6cb8755bbc72634d5df06fc54080812ee50009df
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