]> err.no Git - linux-2.6/commit
WDEV, ath5k, don't return int from bool function
authorJiri Slaby <jirislaby@gmail.com>
Fri, 15 Feb 2008 20:58:52 +0000 (21:58 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 21 Feb 2008 01:11:48 +0000 (20:11 -0500)
commitb988763857426020e50a19434c8434a1e08e70eb
tree102f17ff0319d9115eafd91286a727659335bebe
parent65872e6b434ca463123f7d03b530f143aabc6333
WDEV, ath5k, don't return int from bool function

sparse sees int -> bool cast as an error:
hw.c:3754:10: warning: cast truncates bits from constant value (ffffffea becomes 0)
Fix it by converting the rettype to int and check appropriately.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Nick Kossifidis <mickflemm@gmail.com>
Cc: Luis R. Rodriguez <mcgrof@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/ath5k.h
drivers/net/wireless/ath5k/base.c
drivers/net/wireless/ath5k/hw.c