diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2020-02-25 21:08:52 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-26 20:38:13 -0800 |
commit | c535f9203209be19b60421b363b0bb2c7e90f298 (patch) | |
tree | 0e44c2cfcfd61bfe454f1e531976a2da5b50cd6e /net/llc/af_llc.c | |
parent | 165b94ffcf8ef8165654df70f9f1c534797217cb (diff) | |
download | linux-c535f9203209be19b60421b363b0bb2c7e90f298.tar.bz2 |
af_llc: fix if-statement empty body warning
When debugging via dprintk() is not enabled, make the dprintk()
macro be an empty do-while loop, as is done in
<linux/sunrpc/debug.h>.
This fixes a gcc warning when -Wextra is set:
../net/llc/af_llc.c:974:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
I have verified that there is not object code change (with gcc 7.5.0).
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: netdev@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/llc/af_llc.c')
-rw-r--r-- | net/llc/af_llc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c index 2922d4150d88..54fb8d452a7b 100644 --- a/net/llc/af_llc.c +++ b/net/llc/af_llc.c @@ -47,7 +47,7 @@ static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout); #if 0 #define dprintk(args...) printk(KERN_DEBUG args) #else -#define dprintk(args...) +#define dprintk(args...) do {} while (0) #endif /* Maybe we'll add some more in the future. */ |