All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: lustre: lustre: fid: Remove unnecessary else after return
@ 2015-02-20 18:27 aybuke ozdemir
  2015-02-20 18:54 ` [Outreachy kernel] " Jes Sorensen
  2015-02-20 19:41 ` Julia Lawall
  0 siblings, 2 replies; 3+ messages in thread
From: aybuke ozdemir @ 2015-02-20 18:27 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: aybuke ozdemir

This patch fixes the following checkpatch warning:
WARNING : else is not generally useful after a break or return
204: FILE: drivers/staging/lustre/lustre/fid/fid_request.c

Signed-off-by: aybuke ozdemir <aybuke.147@gmail.com>
---
 drivers/staging/lustre/lustre/fid/fid_request.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/lustre/lustre/fid/fid_request.c b/drivers/staging/lustre/lustre/fid/fid_request.c
index 063441a..54dcfa3 100644
--- a/drivers/staging/lustre/lustre/fid/fid_request.c
+++ b/drivers/staging/lustre/lustre/fid/fid_request.c
@@ -201,10 +201,9 @@ static int seq_client_alloc_seq(const struct lu_env *env,
 			CERROR("%s: Can't allocate new meta-sequence, rc %d\n",
 			       seq->lcs_name, rc);
 			return rc;
-		} else {
-			CDEBUG(D_INFO, "%s: New range - "DRANGE"\n",
-			       seq->lcs_name, PRANGE(&seq->lcs_space));
 		}
+		CDEBUG(D_INFO, "%s: New range - "DRANGE"\n",
+			seq->lcs_name, PRANGE(&seq->lcs_space));
 	} else {
 		rc = 0;
 	}
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-20 19:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-20 18:27 [PATCH] Staging: lustre: lustre: fid: Remove unnecessary else after return aybuke ozdemir
2015-02-20 18:54 ` [Outreachy kernel] " Jes Sorensen
2015-02-20 19:41 ` Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.