staging: wilc1000: Eliminate extraneous braces
authorJanani Ravichandran <janani.rvchndrn@gmail.com>
Sun, 14 Feb 2016 04:10:29 +0000 (23:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:31:44 +0000 (16:31 -0800)
Get rid of extraneous braces enclosing single statement blocks.

Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_debugfs.c

index 6a39b16..da7ec8b 100644 (file)
@@ -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';