]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: make some functions friendly to sparse
authorJohannes Berg <johannes.berg@intel.com>
Sun, 30 Jan 2022 09:53:04 +0000 (11:53 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 18 Feb 2022 08:40:52 +0000 (10:40 +0200)
commit375f2c0986555804c85f32b7276e9838c209b5c3
tree3508f292f23a7fd4f308645b2fce008f663307c3
parentcc81f434dd366429e9e13834e1268bc5c46b484a
iwlwifi: make some functions friendly to sparse

Somehow, sparse cannot track the cond_lock() here properly,
but if we return directly from the inner basic block then
it doesn't complain. Refactor the code a bit to make it not
complain.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20220130115024.3f9de2d59929.Ib6324e93951ee877754538c89f3ab2a84998bd40@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-io.c