ath9k: Fix some smatch warnings
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Sun, 17 Jul 2011 06:08:49 +0000 (11:38 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 18 Jul 2011 18:29:46 +0000 (14:29 -0400)
commit02c5172c314308eb85f80899cc3aef41bc31bbad
tree3a9e4d865fc932cf665f358eb5fdd1146802e8ea
parentf9ab38ba95c718ba07b385720803ed29ff40d1e3
ath9k: Fix some smatch warnings

drivers/net/wireless/ath/ath9k/hif_usb.c +135 hif_usb_mgmt_cb(6) warn:
variable dereferenced before check 'cmd'
drivers/net/wireless/ath/ath9k/btcoex.c +77 ath9k_hw_init_btcoex_hw(38)
error: buffer overflow 'ah->hw_gen_timers.gen_timer_index' 32 <=
2009813776

Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/btcoex.c
drivers/net/wireless/ath/ath9k/hif_usb.c