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)
commit29e76245d46ff530bb2b0311e9fc823fc07b1147
tree616e40295d0ca6b87e51334f32f4338cac3eb30a
parent7b8112d6db0cc67dd2a722ca5bf707768890ac9d
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