* [PATCH] staging: wilc1000: Eliminate extraneous braces
@ 2016-02-14 4:10 Janani Ravichandran
0 siblings, 0 replies; only message in thread
From: Janani Ravichandran @ 2016-02-14 4:10 UTC (permalink / raw)
To: outreachy-kernel
Get rid of extraneous braces enclosing single statement blocks.
Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
---
drivers/staging/wilc1000/wilc_debugfs.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/wilc1000/wilc_debugfs.c b/drivers/staging/wilc1000/wilc_debugfs.c
index c5c8cc9..8e7186b 100644
--- a/drivers/staging/wilc1000/wilc_debugfs.c
+++ b/drivers/staging/wilc1000/wilc_debugfs.c
@@ -98,9 +98,8 @@ static ssize_t wilc_debug_region_write(struct file *filp, const char __user *buf
if (count > sizeof(buffer))
return -EINVAL;
- if (copy_from_user(buffer, buf, count)) {
+ if (copy_from_user(buffer, buf, count))
return -EFAULT;
- }
flag = buffer[0] - '0';
--
2.5.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-13 23:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-14 4:10 [PATCH] staging: wilc1000: Eliminate extraneous braces Janani Ravichandran
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.