]> git.baikalelectronics.ru Git - kernel.git/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)
commit90983b4e66a0cf457486e7ff8b94123c18e16707
tree102f17ff0319d9115eafd91286a727659335bebe
parent9189690b9ef1e85ecc5844c24dd89f23c075d31f
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