]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: change TX code to suppress smatch warning
authorJohannes Berg <johannes.berg@intel.com>
Thu, 6 Dec 2012 12:46:54 +0000 (13:46 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Dec 2012 08:37:40 +0000 (09:37 +0100)
commit77a92f7faf1556659eec783d68832ba58ed9dab1
tree9ecae1e0cabe4d98ff27fba521310170d169d9dd
parent4140035b70eade61f2fdcd3288428e518b673dd6
iwlwifi: change TX code to suppress smatch warning

By using a few temporary variables, smatch can track
what's happening and stops complaining that we access
beyond the tid_data array.

This also makes the generated code a bit smaller, so
it's a win all around.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/dvm/tx.c