staging: lustre: remove else after return statement
authorSantha Meena Ramamoorthy <santhameena13@gmail.com>
Sat, 24 Feb 2018 22:56:36 +0000 (14:56 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Mar 2018 12:17:26 +0000 (04:17 -0800)
Remove else after a return statement as it is not useful. Issue found
using checkpatch.

Signed-off-by: Santha Meena Ramamoorthy <santhameena13@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/llite_lib.c

index 844182a..bc5d6b6 100644 (file)
@@ -1193,13 +1193,12 @@ static int ll_update_lsm_md(struct inode *inode, struct lustre_md *md)
                        lmv_free_memmd(lli->lli_lsm_md);
                        lli->lli_lsm_md = NULL;
                        return 0;
-               } else {
-                       /*
-                        * The lustre_md from req does not include stripeEA,
-                        * see ll_md_setattr
-                        */
-                       return 0;
                }
+               /*
+                * The lustre_md from req does not include stripeEA,
+                * see ll_md_setattr
+                */
+               return 0;
        }
 
        /* set the directory layout */