Skip to contentSkip to conversation

staging: lustre: fld_request.c: Remove else after return.

PATCH New Alberto Pires de Oliveira Neto 1 participant 1 message Mar 2, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 staging: lustre: fld_request.c: Remove else after return.

This patch fixes checkpatch.pl warning.
WARNING: else is not generally useful after a break or return

---
 drivers/staging/lustre/lustre/fld/fld_request.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/staging/lustre/lustre/fld/fld_request.c +2 -3
index b8d17e1..f3e9154 100644
@@ -217,10 +217,9 @@ int fld_client_add_target(struct lu_client_fld *fld,
 		CERROR("%s: Attempt to add target %s (idx %llu) on fly - skip it\n",
 			fld->lcf_name, name, tar->ft_idx);
 		return 0;
-	} else {
-		CDEBUG(D_INFO, "%s: Adding target %s (idx %llu)\n",
-		       fld->lcf_name, name, tar->ft_idx);
 	}
+	CDEBUG(D_INFO, "%s: Adding target %s (idx %llu)\n",
+			fld->lcf_name, name, tar->ft_idx);
 
 	OBD_ALLOC_PTR(target);
 	if (target == NULL)
Signature · 1 line
1.9.1