]> asedeno.scripts.mit.edu Git - linux.git/commit
atm: eni: Move semicolon to a new line after empty for loop
authorNathan Chancellor <natechancellor@gmail.com>
Wed, 17 Oct 2018 18:03:34 +0000 (11:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 22:38:26 +0000 (15:38 -0700)
commit3e73cc5cd8c03ebc930f1799cc984e746780414a
tree21d9d06d7a4d1d48cd401c3e67a0836d35451f8e
parentd93adca7a807cf4a33f3ec96402f645cd8fbe158
atm: eni: Move semicolon to a new line after empty for loop

Clang warns:

drivers/atm/eni.c:244:48: error: for loop has empty body
[-Werror,-Wempty-body]
        for (order = 0; (1 << order) < *size; order++);
                                                      ^
drivers/atm/eni.c:244:48: note: put the semicolon on a separate line to
silence this warning

In this case, that loop is expected to be empty so silence the warning
in the way that Clang suggests.

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/eni.c