staging: lustre: llite: Remove else after goto
authorLuis de Bethencourt <luisbg@kernel.org>
Wed, 6 Dec 2017 19:16:58 +0000 (19:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Dec 2017 14:34:17 +0000 (15:34 +0100)
If an "if" branch is terminated by a "goto", there's no need to have an
"else" statement and an indented block of code.

Remove the "else" statement to simplify the code flow.

Signed-off-by: Luis de Bethencourt <luisbg@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/dir.c

index 5b2e47c246f3dd1970b48038d9b9c7fbab5c3e69..f5b67a4923e3c8a5c6d171d6e4af2eb8923258f0 100644 (file)
@@ -1339,9 +1339,9 @@ finish_req:
                                               cmd == LL_IOC_MDC_GETINFO)) {
                                rc = 0;
                                goto skip_lmm;
-                       } else {
-                               goto out_req;
                        }
+
+                       goto out_req;
                }
 
                if (cmd == IOC_MDC_GETFILESTRIPE ||