]> git.baikalelectronics.ru Git - kernel.git/commit
atm: nicstar: fix if-statement empty body warning
authorRandy Dunlap <rdunlap@infradead.org>
Fri, 28 Feb 2020 02:09:44 +0000 (18:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Mar 2020 05:28:30 +0000 (21:28 -0800)
commitc83c35d87907ec201ec4403ba96f3ce3b8ade186
treeedf5bf085fbc3199030f920eddb479cebdfd8f68
parent83e82369da5ec4c60f21e9debfa8c55e13b21baf
atm: nicstar: fix if-statement empty body warning

When debugging via PRINTK() is not enabled, make the PRINTK()
macro be an empty do-while block.

Thix fixes a gcc warning when -Wextra is set:
../drivers/atm/nicstar.c:1819:23: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]

I have verified that there is no object code change (with gcc 7.5.0).

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Chas Williams <3chas3@gmail.com>
Cc: linux-atm-general@lists.sourceforge.net
Cc: netdev@vger.kernel.org
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/nicstar.c