Staging: android: Remove unnecessary braces.
authorShraddha Barke <shraddha.6596@gmail.com>
Sat, 5 Sep 2015 13:28:26 +0000 (18:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:53 +0000 (18:24 -0700)
The linux kernel coding style discourages use of braces for single
statement blocks. This patch removes the unnecessary braces.

The warning was detected using checkpatch.pl. Coccinelle was used
to make the change.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ashmem.c

index d786ec1..f931800 100644 (file)
@@ -311,10 +311,9 @@ static ssize_t ashmem_read(struct file *file, char __user *buf,
         * ashmem_release is called.
         */
        ret = __vfs_read(asma->file, buf, len, pos);
-       if (ret >= 0) {
+       if (ret >= 0)
                /** Update backing file pos, since f_ops->read() doesn't */
                asma->file->f_pos = *pos;
-       }
        return ret;
 
 out_unlock: