iwlagn: fix debug variable access
authorJohannes Berg <johannes.berg@intel.com>
Tue, 30 Nov 2010 21:24:36 +0000 (13:24 -0800)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 13 Dec 2010 23:51:33 +0000 (15:51 -0800)
commit9decde95be8a77a16f5668544bee45d41a7ae665
treed5ef30fe7e9e0b03a4d1e9482c75017a26955413
parentae0b693c12cc78913085733d28e0e0e6020db6f4
iwlagn: fix debug variable access

The compiler correctly warns:
iwl-agn-tx.c: In function ‘iwlagn_tx_status_reply_compressed_ba’:
iwl-agn-tx.c:1240: warning: ‘bitmap’ may be used uninitialized in this function

Move the debug print to the branch that reads the
bitmap, and move the variables too so it's more
obvious where they are needed.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-tx.c