linux/drivers/net/wireless/intel/iwlegacy
Arnd Bergmann fa9f5d0e0b 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 <arnd@arndb.de>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210322104343.948660-3-arnd@kernel.org
2021-04-11 12:31:01 +03:00
..
3945-debug.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 183 2019-05-30 11:29:20 -07:00
3945-mac.c iwlegacy: avoid -Wempty-body warning 2021-04-11 12:31:01 +03:00
3945-rs.c iwlegacy: 3945-rs: Remove all non-conformant kernel-doc headers 2020-09-01 16:05:02 +03:00
3945.c iwlegacy: 3945: Remove all non-conformant kernel-doc headers 2020-09-01 16:05:03 +03:00
3945.h wireless-drivers-next patches for 5.3 2019-06-26 10:12:17 -07:00
4965-calib.c iwlegacy: 4965-calib: Demote seemingly accidental kernel-doc header 2020-09-01 12:22:42 +03:00
4965-debug.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 183 2019-05-30 11:29:20 -07:00
4965-mac.c iwlegacy: 4965-mac: Simplify the calculation of variables 2021-02-08 13:20:44 +02:00
4965-rs.c iwlegacy: 4965-rs: Demote non kernel-doc headers to standard comment blocks 2020-09-01 12:22:41 +03:00
4965.c iwlegacy: 4965: Demote a bunch of nonconformant kernel-doc headers 2020-09-01 12:06:16 +03:00
4965.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 183 2019-05-30 11:29:20 -07:00
commands.h iwlegacy: Replace zero-length array with flexible-array 2020-05-12 11:54:47 +03:00
common.c iwlegacy: avoid -Wempty-body warning 2021-04-11 12:31:01 +03:00
common.h iwlegacy: avoid -Wempty-body warning 2021-04-11 12:31:01 +03:00
csr.h
debug.c iwlegacy: debug: Demote seemingly unintentional kerneldoc header 2020-09-01 12:02:40 +03:00
iwl-spectrum.h iwlegacy: Replace zero-length array with flexible-array 2020-05-12 11:54:47 +03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
prph.h