]> git.baikalelectronics.ru Git - kernel.git/commit
ath: Make ath_printk void not int and remove unused struct ath_common *
authorJoe Perches <joe@perches.com>
Fri, 26 Aug 2011 08:56:39 +0000 (01:56 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 30 Aug 2011 19:38:52 +0000 (15:38 -0400)
commit5b2e58d85a72bdd2d87cc4dc4052c09f8f382743
tree616e40295d0ca6b87e51334f32f4338cac3eb30a
parent6081f83a1645a8e7f065b31f2b8a0a9169ae5d96
ath: Make ath_printk void not int and remove unused struct ath_common *

Changing the return type and removing the unused argument from
ath_printk reduces code size.

Add an __always_unused struct ath_common * to the macros
that call ath_printk to avoid unused variable warnings.

$ size drivers/net/wireless/ath/built-in.o*
   text    data     bss     dec     hex filename
1159859   16235  212000 1388094  152e3e drivers/net/wireless/ath/built-in.o.new
1164175   16235  212032 1392442  153f3a drivers/net/wireless/ath/built-in.o.old

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath.h
drivers/net/wireless/ath/main.c