vxge: avoid -Wemtpy-body warnings
authorArnd Bergmann <arnd@arndb.de>
Thu, 22 Apr 2021 15:35:33 +0000 (17:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Apr 2021 20:27:36 +0000 (13:27 -0700)
commit3197a98c7081a1c3db6ef63fece55d7f66c79bdc
tree019bd0b886daa37e0f1d148fbc6729d6416eb123
parent57e222475545f457ecf4833db31f156e8b7674c7
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>
drivers/net/ethernet/neterion/vxge/vxge-main.h