Re: [PATCH] atm: eni: Move semicolon to a new line after empty for loop

From: David Miller
Date: Thu Oct 18 2018 - 18:41:31 EST


From: Nathan Chancellor <natechancellor@xxxxxxxxx>
Date: Wed, 17 Oct 2018 11:03:34 -0700

> 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@xxxxxxxxxxxxx>
> Signed-off-by: Nathan Chancellor <natechancellor@xxxxxxxxx>

Applied.