staging: lustre: lnet: lnet: Remove unnecessary else after return
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Mon, 29 Sep 2014 10:32:23 +0000 (16:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2014 16:52:15 +0000 (09:52 -0700)
This patch fixes checpatch.pl warning in acceptor.c file.
WARNING: else is not generally useful after a break or return

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/acceptor.c

index 5dfb887..72fd1bf 100644 (file)
@@ -434,11 +434,11 @@ accept2secure(const char *acc, long *sec)
                return 1;
        } else if (!strcmp(acc, "none")) {
                return 0;
-       } else {
-               LCONSOLE_ERROR_MSG(0x124, "Can't parse 'accept=\"%s\"'\n",
-                                  acc);
-               return -EINVAL;
        }
+
+       LCONSOLE_ERROR_MSG(0x124, "Can't parse 'accept=\"%s\"'\n",
+                          acc);
+       return -EINVAL;
 }
 
 int