Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b8112d6 authored by Joe Perches's avatar Joe Perches Committed by John W. Linville
Browse files

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: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 78b8e51d
Loading
Loading
Loading
Loading
+12 −17
Original line number Original line Diff line number Diff line
@@ -178,8 +178,9 @@ bool ath_hw_keyreset(struct ath_common *common, u16 entry);
void ath_hw_cycle_counters_update(struct ath_common *common);
void ath_hw_cycle_counters_update(struct ath_common *common);
int32_t ath_hw_get_listen_time(struct ath_common *common);
int32_t ath_hw_get_listen_time(struct ath_common *common);


extern __attribute__ ((format (printf, 3, 4))) int
extern __attribute__((format (printf, 3, 4)))
ath_printk(const char *level, struct ath_common *common, const char *fmt, ...);
int ath_printk(const char *level, struct ath_common *common,
	       const char *fmt, ...);


#define ath_emerg(common, fmt, ...)				\
#define ath_emerg(common, fmt, ...)				\
	ath_printk(KERN_EMERG, common, fmt, ##__VA_ARGS__)
	ath_printk(KERN_EMERG, common, fmt, ##__VA_ARGS__)
@@ -247,26 +248,20 @@ enum ATH_DEBUG {
#ifdef CONFIG_ATH_DEBUG
#ifdef CONFIG_ATH_DEBUG


#define ath_dbg(common, dbg_mask, fmt, ...)				\
#define ath_dbg(common, dbg_mask, fmt, ...)				\
({								\
do {									\
	int rtn;						\
	if ((common)->debug_mask & dbg_mask)				\
	if ((common)->debug_mask & dbg_mask)				\
		rtn = ath_printk(KERN_DEBUG, common, fmt,	\
		ath_printk(KERN_DEBUG, common, fmt, ##__VA_ARGS__);	\
				 ##__VA_ARGS__);		\
} while (0)
	else							\

		rtn = 0;					\
								\
	rtn;							\
})
#define ATH_DBG_WARN(foo, arg...) WARN(foo, arg)
#define ATH_DBG_WARN(foo, arg...) WARN(foo, arg)
#define ATH_DBG_WARN_ON_ONCE(foo) WARN_ON_ONCE(foo)
#define ATH_DBG_WARN_ON_ONCE(foo) WARN_ON_ONCE(foo)


#else
#else


static inline  __attribute__ ((format (printf, 3, 4))) int
static inline  __attribute__((format (printf, 3, 4)))
ath_dbg(struct ath_common *common, enum ATH_DEBUG dbg_mask,
void ath_dbg(struct ath_common *common, enum ATH_DEBUG dbg_mask,
	     const char *fmt, ...)
	     const char *fmt, ...)
{
{
	return 0;
}
}
#define ATH_DBG_WARN(foo, arg...) do {} while (0)
#define ATH_DBG_WARN(foo, arg...) do {} while (0)
#define ATH_DBG_WARN_ON_ONCE(foo) ({				\
#define ATH_DBG_WARN_ON_ONCE(foo) ({				\