summaryrefslogtreecommitdiff
path: root/drivers/atm
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-10-17 21:03:34 +0300
committerDavid S. Miller <davem@davemloft.net>2018-10-19 01:38:26 +0300
commit3e73cc5cd8c03ebc930f1799cc984e746780414a (patch)
tree21d9d06d7a4d1d48cd401c3e67a0836d35451f8e /drivers/atm
parentd93adca7a807cf4a33f3ec96402f645cd8fbe158 (diff)
downloadlinux-3e73cc5cd8c03ebc930f1799cc984e746780414a.tar.xz
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>
Diffstat (limited to 'drivers/atm')
-rw-r--r--drivers/atm/eni.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/atm/eni.c b/drivers/atm/eni.c
index 6470e3c4c990..f8c703426c90 100644
--- a/drivers/atm/eni.c
+++ b/drivers/atm/eni.c
@@ -241,7 +241,8 @@ static void __iomem *eni_alloc_mem(struct eni_dev *eni_dev, unsigned long *size)
len = eni_dev->free_len;
if (*size < MID_MIN_BUF_SIZE) *size = MID_MIN_BUF_SIZE;
if (*size > MID_MAX_BUF_SIZE) return NULL;
- for (order = 0; (1 << order) < *size; order++);
+ for (order = 0; (1 << order) < *size; order++)
+ ;
DPRINTK("trying: %ld->%d\n",*size,order);
best_order = 65; /* we don't have more than 2^64 of anything ... */
index = 0; /* silence GCC */