summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2021-04-22 17:35:33 +0200
committerDavid S. Miller <davem@davemloft.net>2021-04-22 13:27:36 -0700
commit3197a98c7081a1c3db6ef63fece55d7f66c79bdc (patch)
tree019bd0b886daa37e0f1d148fbc6729d6416eb123 /tools/perf/scripts/python
parent57e222475545f457ecf4833db31f156e8b7674c7 (diff)
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions