diff options
| author | Arnd Bergmann <[email protected]> | 2021-03-22 10:43:33 +0000 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2021-04-11 09:31:01 +0000 |
| commit | fa9f5d0e0b45a06802f7cb3afed237be6066821e (patch) | |
| tree | fe21b60e32896959fa7db6396c18f5700e708f5f /drivers/net/wireless/intel/iwlegacy/common.h | |
| parent | mt7601u: enable TDLS support (diff) | |
| download | kernel-fa9f5d0e0b45a06802f7cb3afed237be6066821e.tar.gz kernel-fa9f5d0e0b45a06802f7cb3afed237be6066821e.zip | |
iwlegacy: avoid -Wempty-body warning
There are a couple of warnings in this driver when building with W=1:
drivers/net/wireless/intel/iwlegacy/common.c: In function 'il_power_set_mode':
drivers/net/wireless/intel/iwlegacy/common.c:1195:60: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
1195 | il->chain_noise_data.state);
| ^
drivers/net/wireless/intel/iwlegacy/common.c: In function 'il_do_scan_abort':
drivers/net/wireless/intel/iwlegacy/common.c:1343:57: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body]
Change the empty debug macros to no_printk(), which avoids the
warnings and adds useful format string checks.
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Stanislaw Gruszka <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/net/wireless/intel/iwlegacy/common.h')
| -rw-r--r-- | drivers/net/wireless/intel/iwlegacy/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlegacy/common.h b/drivers/net/wireless/intel/iwlegacy/common.h index ea1b1bb7ddcb..40877ef1fbf2 100644 --- a/drivers/net/wireless/intel/iwlegacy/common.h +++ b/drivers/net/wireless/intel/iwlegacy/common.h @@ -2937,7 +2937,7 @@ do { \ } while (0) #else -#define IL_DBG(level, fmt, args...) +#define IL_DBG(level, fmt, args...) no_printk(fmt, ##args) static inline void il_print_hex_dump(struct il_priv *il, int level, const void *p, u32 len) { |
