]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iwlwifi: mvm: make iwl_mvm_update_mcc() easier to follow
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Apr 2017 08:17:57 +0000 (10:17 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 22 Jun 2017 21:13:01 +0000 (00:13 +0300)
commit28269897c6cd668ff093da8a123099659376504b
tree7536397a48f1476b9ad5c3061c90e5938e440cba
parente9eb0fa247cc61858e2b61e7242f870b1bfb67c2
iwlwifi: mvm: make iwl_mvm_update_mcc() easier to follow

Some static checkers (e.g. smatch) complain about the logic, saying that
resp_cp might be leaked. Clearly that isn't true, but making the logic
easier to follow does not result in any significant code changes and makes
the code more readable by moving the NULL check closer to its source.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c