Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath: Make ath_dbg void not int

The return value is never used so make it void.

Reduces object size a tiny bit.

$ size drivers/net/wireless/ath/built-in.o*
text data bss dec hex filename
1164175 16235 212032 1392442 153f3a drivers/net/wireless/ath/built-in.o.new
1164819 16235 212032 1393086 1541be 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>

authored by

Joe Perches and committed by
John W. Linville
7b8112d6 78b8e51d

+12 -17
+12 -17
drivers/net/wireless/ath/ath.h
··· 178 178 void ath_hw_cycle_counters_update(struct ath_common *common); 179 179 int32_t ath_hw_get_listen_time(struct ath_common *common); 180 180 181 - extern __attribute__ ((format (printf, 3, 4))) int 182 - ath_printk(const char *level, struct ath_common *common, const char *fmt, ...); 181 + extern __attribute__((format (printf, 3, 4))) 182 + int ath_printk(const char *level, struct ath_common *common, 183 + const char *fmt, ...); 183 184 184 185 #define ath_emerg(common, fmt, ...) \ 185 186 ath_printk(KERN_EMERG, common, fmt, ##__VA_ARGS__) ··· 247 246 248 247 #ifdef CONFIG_ATH_DEBUG 249 248 250 - #define ath_dbg(common, dbg_mask, fmt, ...) \ 251 - ({ \ 252 - int rtn; \ 253 - if ((common)->debug_mask & dbg_mask) \ 254 - rtn = ath_printk(KERN_DEBUG, common, fmt, \ 255 - ##__VA_ARGS__); \ 256 - else \ 257 - rtn = 0; \ 258 - \ 259 - rtn; \ 260 - }) 249 + #define ath_dbg(common, dbg_mask, fmt, ...) \ 250 + do { \ 251 + if ((common)->debug_mask & dbg_mask) \ 252 + ath_printk(KERN_DEBUG, common, fmt, ##__VA_ARGS__); \ 253 + } while (0) 254 + 261 255 #define ATH_DBG_WARN(foo, arg...) WARN(foo, arg) 262 256 #define ATH_DBG_WARN_ON_ONCE(foo) WARN_ON_ONCE(foo) 263 257 264 258 #else 265 259 266 - static inline __attribute__ ((format (printf, 3, 4))) int 267 - ath_dbg(struct ath_common *common, enum ATH_DEBUG dbg_mask, 268 - const char *fmt, ...) 260 + static inline __attribute__((format (printf, 3, 4))) 261 + void ath_dbg(struct ath_common *common, enum ATH_DEBUG dbg_mask, 262 + const char *fmt, ...) 269 263 { 270 - return 0; 271 264 } 272 265 #define ATH_DBG_WARN(foo, arg...) do {} while (0) 273 266 #define ATH_DBG_WARN_ON_ONCE(foo) ({ \