ath9k: Fix a smatch warnings
authorLarry Finger <Larry.Finger@lwfinger.net>
Sat, 27 Aug 2011 18:56:00 +0000 (13:56 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 29 Aug 2011 19:33:03 +0000 (15:33 -0400)
commit1ba45b9e3a366fee0603cda51e61935b7dc9db7d
treef5e16b585e10a242c0ca19e4b9fb15033f969bd0
parentcf3af74824b1bf2bd60eb6a0dd82b27f9e9236ac
ath9k: Fix a smatch warnings

Smatch shows the following warnings:

  CHECK   drivers/net/wireless/ath/ath9k/htc_drv_main.c
drivers/net/wireless/ath/ath9k/htc_drv_main.c +1315 ath9k_htc_configure_filter(27) warn: inconsistent returns mutex:&priv->mutex: locked (1303) unlocked (1315)

  CHECK   drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +3321 ar9300_eeprom_restore_internal(20) warn: returning -1 instead of -ENOMEM is sloppy

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
drivers/net/wireless/ath/ath9k/htc_drv_main.c