]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: avoid using trinary operator w/ TX_STAT_INC
authorJohn W. Linville <linville@tuxdriver.com>
Thu, 14 Apr 2011 14:38:22 +0000 (10:38 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 14 Apr 2011 19:29:06 +0000 (15:29 -0400)
commit7daa56f07630b3bd5ab190160c334fae7107b2df
treed511a8f09a447b8258625721f09cc2ce82242a9d
parent9a12d62e17138b0a3c0f1dde6e95757442b4c03f
ath9k: avoid using trinary operator w/ TX_STAT_INC

Otherwise, you get this:

  CC [M]  drivers/net/wireless/ath/ath9k/hif_usb.o
drivers/net/wireless/ath/ath9k/hif_usb.c: In function ‘ath9k_skb_queue_complete’:
drivers/net/wireless/ath/ath9k/hif_usb.c:230:12: error: expected expression before ‘do’
make[2]: *** [drivers/net/wireless/ath/ath9k/hif_usb.o] Error 1
make[1]: *** [drivers/net/wireless/ath/ath9k] Error 2
make: *** [drivers/net/wireless/ath/] Error 2

The TX_STAT_INC macro should probably be changed to accomodate such
usage, although using a trinary operator in place of an if-else seems
questionable to me anyway.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Acked-by: Sujith Manoharan <Sujith.Manoharan@Atheros.com>
drivers/net/wireless/ath/ath9k/hif_usb.c