]> git.baikalelectronics.ru Git - kernel.git/commit
ath: fix build break with ATH_DBG_WARN_ON_ONCE
authorJohn W. Linville <linville@tuxdriver.com>
Thu, 9 Dec 2010 14:08:47 +0000 (09:08 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 9 Dec 2010 14:42:10 +0000 (09:42 -0500)
commit67e8f94108148356aebd8133d59bee8efdbc851c
treea7366c84bd9e6b28e3217c3e705e68f1258a56b4
parenta019938a8351430ab02510dfd8c038d4e7f1f2d4
ath: fix build break with ATH_DBG_WARN_ON_ONCE

Description by Hauke:

"If CONFIG_ATH_DEBUG=y is set ATH_DBG_WARN_ON_ONCE uses WARN_ON_ONCE and
returns something, but if CONFIG_ATH_DEBUG is not set it does not return
anything. Now ATH_DBG_WARN_ON_ONCE is used in the boolean expression in
an if case and is not returning anything and causes a compile error.

  CC [M]  /drivers/net/wireless/ath/ath9k/main.o
/drivers/net/wireless/ath/ath9k/main.c: In function ‘ath_isr’:
/drivers/net/wireless/ath/ath9k/main.c:769: error: expected expression
before ‘do’
make[5]: *** [/drivers/net/wireless/ath/ath9k/main.o] Error 1
make[4]: *** [/drivers/net/wireless/ath/ath9k] Error 2"

Reported-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath.h