diff options
author | Bart Van Assche <[email protected]> | 2018-07-05 10:51:35 -0700 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2018-07-09 12:11:22 -0600 |
commit | 4c5743bc4fe3233cecc1c184a773c79c8ee45bbe (patch) | |
tree | 804ae551c1759af2e224f35d3892a14db609f337 | |
parent | f8c2d2280cf67cd85cff6b42c989bbf1c7d0af61 (diff) |
IB/nes: Fix a compiler warning
Avoid that the following compiler warning is reported when building with
W=1:
drivers/infiniband/hw/nes/nes_hw.c:646:51: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
-rw-r--r-- | drivers/infiniband/hw/nes/nes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes.h b/drivers/infiniband/hw/nes/nes.h index 00c27291dc26..18340942d75f 100644 --- a/drivers/infiniband/hw/nes/nes.h +++ b/drivers/infiniband/hw/nes/nes.h @@ -159,7 +159,7 @@ do { \ #define NES_EVENT_TIMEOUT 1200000 #else -#define nes_debug(level, fmt, args...) +#define nes_debug(level, fmt, args...) do {} while (0) #define assert(expr) do {} while (0) #define NES_EVENT_TIMEOUT 100000 |