OpenCloudOS-Kernel/drivers/net/ethernet/neterion/vxge
Arnd Bergmann 3197a98c70 vxge: avoid -Wemtpy-body warnings
There are a few warnings about empty debug macros in this driver:

drivers/net/ethernet/neterion/vxge/vxge-main.c: In function 'vxge_probe':
drivers/net/ethernet/neterion/vxge/vxge-main.c:4480:76: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
 4480 |                                 "Failed in enabling SRIOV mode: %d\n", ret);

Change them to proper 'do { } while (0)' expressions to make the
code a little more robust and avoid the warnings.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-04-22 13:27:36 -07:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
vxge-config.c net: vxget: clean up sparse warnings 2020-12-14 19:18:11 -08:00
vxge-config.h net: vxge: Remove in_interrupt() conditionals 2020-09-29 14:02:54 -07:00
vxge-ethtool.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
vxge-ethtool.h vxge: Add const to ethtool_driver_stats_keys 2015-04-01 15:35:14 -04:00
vxge-main.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
vxge-main.h vxge: avoid -Wemtpy-body warnings 2021-04-22 13:27:36 -07:00
vxge-reg.h
vxge-traffic.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
vxge-traffic.h
vxge-version.h