]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: ath5k_eeprom_mode_from_channel() returns signed
authorDan Carpenter <error27@gmail.com>
Mon, 3 Jan 2011 05:46:29 +0000 (08:46 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Jan 2011 19:46:13 +0000 (14:46 -0500)
commit296160c7fb87f32d351251c56c47d2e6b32b2322
treee40710cddea3ff5c328141e57a6287b3b541d4f0
parent8d68948e33cf9287cc6a98162fb471e3b95ba7f3
ath5k: ath5k_eeprom_mode_from_channel() returns signed

ath5k_eeprom_mode_from_channel() returns -1 on error but we're storing
the result in "ee_mode" which is an unsigned char.  This breaks the
error handling.  This patch makes "ee_mode" an int.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/phy.c