summaryrefslogtreecommitdiff
path: root/net/sunrpc/sysctl.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2020-08-24 21:56:25 -0700
committerDavid S. Miller <davem@davemloft.net>2020-08-25 07:54:19 -0700
commitca65a280fb4bc06baa6ea33f42631e489e462604 (patch)
tree75696e9a9a8f838810aee239ef7c9c8b83006347 /net/sunrpc/sysctl.c
parentdee847793fac2fcb05add1ab46cb6e5f77340fa9 (diff)
sunrpc: Avoid comma separated statements
Use semicolons and braces. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc/sysctl.c')
-rw-r--r--net/sunrpc/sysctl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/sunrpc/sysctl.c b/net/sunrpc/sysctl.c
index 999eee1ed61c..6c86e2a7d942 100644
--- a/net/sunrpc/sysctl.c
+++ b/net/sunrpc/sysctl.c
@@ -108,8 +108,10 @@ proc_dodebug(struct ctl_table *table, int write, void *buffer, size_t *lenp,
left -= (s - tmpbuf);
if (left && !isspace(*s))
return -EINVAL;
- while (left && isspace(*s))
- left--, s++;
+ while (left && isspace(*s)) {
+ left--;
+ s++;
+ }
} else
left = 0;
*(unsigned int *) table->data = value;