Skip to contentSkip to conversation

Staging: lustre: lmv_obd: Remove redundant test.

PATCH New Sandhya Bankar 1 participant 1 message Sep 19, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: lustre: lmv_obd: Remove redundant test.

filp != NULL is already checked, so no need to check it again.

---
 drivers/staging/lustre/lustre/lmv/lmv_obd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/lustre/lustre/lmv/lmv_obd.c +1 -1
index dad572e..7dbb2b9 100644
@@ -865,7 +865,7 @@ static int lmv_hsm_ct_register(struct lmv_obd *lmv, unsigned int cmd, int len,
 
 	rc = libcfs_kkuc_group_add(filp, lk->lk_uid, lk->lk_group,
 				   &kcd, sizeof(kcd));
-	if (rc && filp)
+	if (rc)
 		fput(filp);
 
 	return rc;
Signature · 1 line
1.7.1