[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171206191700.26532-2-luisbg@kernel.org>
Date: Wed, 6 Dec 2017 19:16:59 +0000
From: Luis de Bethencourt <luisbg@...nel.org>
To: linux-kernel@...r.kernel.org
Cc: devel@...verdev.osuosl.org, lustre-devel@...ts.lustre.org,
Lai Siyao <lai.siyao@...el.com>,
Ernestas Kulik <ernestas.kulik@...il.com>,
Aastha Gupta <aastha.gupta4104@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
James Simmons <jsimmons@...radead.org>,
Andreas Dilger <andreas.dilger@...el.com>,
Oleg Drokin <oleg.drokin@...el.com>,
Luis de Bethencourt <luisbg@...nel.org>
Subject: [PATCH 2/3] staging: lustre: llite: Remove redundant else keyword
There is no need to use 'else' if in main branch 'goto' is present.
Signed-off-by: Luis de Bethencourt <luisbg@...nel.org>
---
drivers/staging/lustre/lustre/llite/llite_lib.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/lustre/lustre/llite/llite_lib.c b/drivers/staging/lustre/lustre/llite/llite_lib.c
index 8666f1e81ade..e84719662edf 100644
--- a/drivers/staging/lustre/lustre/llite/llite_lib.c
+++ b/drivers/staging/lustre/lustre/llite/llite_lib.c
@@ -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;
}
--
2.15.1
Powered by blists - more mailing lists