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)
commitc8a8ab4472619e6936a224c5a950750d640aefbb
tree9ecae1e0cabe4d98ff27fba521310170d169d9dd
parent8d96bb61fcfa11fb0c0da0d4f1331b7ca231bec1
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