]> git.baikalelectronics.ru Git - kernel.git/commit
af_llc: fix if-statement empty body warning
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 26 Feb 2020 05:08:52 +0000 (21:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 04:38:13 +0000 (20:38 -0800)
commit2957d10627098bf49d424d6ae5d5742703e08197
tree0e44c2cfcfd61bfe454f1e531976a2da5b50cd6e
parent29716fdbb34502ff6370f46454cadcd9f4cd59a7
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>
net/llc/af_llc.c