atm: zatm: Fix empty body Clang warnings
authorNathan Chancellor <natechancellor@gmail.com>
Wed, 17 Oct 2018 18:04:19 +0000 (11:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 22:39:10 +0000 (15:39 -0700)
commit64b9d16e2d02ca6e5dc8fcd30cfd52b0ecaaa8f4
tree46ca38eaf1dd639a6e411d93e3192bf32d444f37
parent3e73cc5cd8c03ebc930f1799cc984e746780414a
atm: zatm: Fix empty body Clang warnings

Clang warns:

drivers/atm/zatm.c:513:7: error: while loop has empty body
[-Werror,-Wempty-body]
        zwait;
             ^
drivers/atm/zatm.c:513:7: note: put the semicolon on a separate line to
silence this warning

Get rid of this warning by using an empty do-while loop. While we're at
it, add parentheses to make it clear that this is a function-like macro.

Link: https://github.com/ClangBuiltLinux/linux/issues/42
Suggested-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/zatm.c