staging: lustre: llite: Remove redundant else keyword
authorLuis de Bethencourt <luisbg@kernel.org>
Wed, 6 Dec 2017 19:16:59 +0000 (19:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Dec 2017 14:34:17 +0000 (15:34 +0100)
There is no need to use 'else' if in main branch 'goto' is present.

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

index 8666f1e..e847196 100644 (file)
@@ -236,7 +236,9 @@ static int client_common_fill_super(struct super_block *sb, char *md, char *dt,
                                   "An MDT (md %s) is performing recovery, of which this client is not a part. Please wait for recovery to complete, abort, or time out.\n",
                                   md);
                goto out;
-       } else if (err) {
+       }
+
+       if (err) {
                CERROR("cannot connect to %s: rc = %d\n", md, err);
                goto out;
        }