From 2c1d2535db8f1490d9e4aa9c8e0297daa6d05c31 Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Mon, 29 Sep 2014 16:02:23 +0530 Subject: [PATCH] staging: lustre: lnet: lnet: Remove unnecessary else after return 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/lustre/lnet/lnet/acceptor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/acceptor.c b/drivers/staging/lustre/lnet/lnet/acceptor.c index 5dfb887..72fd1bf 100644 --- a/drivers/staging/lustre/lnet/lnet/acceptor.c +++ b/drivers/staging/lustre/lnet/lnet/acceptor.c @@ -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 -- 2.7.4