summaryrefslogtreecommitdiff
path: root/drivers/hv
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2021-04-22 18:35:33 +0300
committerDavid S. Miller <davem@davemloft.net>2021-04-22 23:27:36 +0300
commit3197a98c7081a1c3db6ef63fece55d7f66c79bdc (patch)
tree019bd0b886daa37e0f1d148fbc6729d6416eb123 /drivers/hv
parent57e222475545f457ecf4833db31f156e8b7674c7 (diff)
downloadlinux-3197a98c7081a1c3db6ef63fece55d7f66c79bdc.tar.xz
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>
Diffstat (limited to 'drivers/hv')
0 files changed, 0 insertions, 0 deletions