mwifiex: Make mwifiex_dbg a function, reduce object size
authorJoe Perches <joe@perches.com>
Mon, 31 Aug 2015 17:46:45 +0000 (10:46 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 29 Sep 2015 07:32:46 +0000 (10:32 +0300)
commit36925e52c5ac9d10a553d1339e13a61bfbdd4ba4
treefdc088a1ec60088ddd94f8c694c21548b1318037
parent07fe2e38c7fd19dc6a5468d0661fc75586ce9ca4
mwifiex: Make mwifiex_dbg a function, reduce object size

The mwifiex_dbg macro has two tests that could be consolidated
into a function reducing overall object size ~10KB (~4%).

So convert the macro into a function.

$ size drivers/net/wireless/mwifiex/built-in.o* (x86-64 defconfig)
   text    data     bss     dec     hex filename
 233102    8628    4809  246539   3c30b drivers/net/wireless/mwifiex/built-in.o.new
 243949    8628    4809  257386   3ed6a drivers/net/wireless/mwifiex/built-in.o.old

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/main.c
drivers/net/wireless/mwifiex/main.h