projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dee8477
)
sunrpc: Avoid comma separated statements
author
Joe Perches
<joe@perches.com>
Tue, 25 Aug 2020 04:56:25 +0000
(21:56 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 25 Aug 2020 14:54:19 +0000
(07:54 -0700)
Use semicolons and braces.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sunrpc/sysctl.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/sysctl.c
b/net/sunrpc/sysctl.c
index 999eee1ed61c9c0b694a03bbf3bc6b7ea1e53274..6c86e2a7d94222284ad29222f52ebea65f429f99 100644
(file)
--- 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;