aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorSandhya Bankar <bankarsandhya512@gmail.com>2016-09-19 14:29:36 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-20 07:23:40 -0400
commit024931694730a2ad31bc1e7c58a028abe441180b (patch)
treedd23c371d095979afd951dc847a20993211232a2 /drivers/staging
parent83a75e3f14667b334ecd53b6334407ace8679eed (diff)
Staging: lustre: lmv_obd: Remove redundant test.
filp != NULL is already checked, so no need to check it again. Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com> Reviewed-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/lustre/lustre/lmv/lmv_obd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/lmv/lmv_obd.c b/drivers/staging/lustre/lustre/lmv/lmv_obd.c
index dad572eb76ec..7dbb2b946acf 100644
--- a/drivers/staging/lustre/lustre/lmv/lmv_obd.c
+++ b/drivers/staging/lustre/lustre/lmv/lmv_obd.c
@@ -865,7 +865,7 @@ static int lmv_hsm_ct_register(struct lmv_obd *lmv, unsigned int cmd, int len,
865 865
866 rc = libcfs_kkuc_group_add(filp, lk->lk_uid, lk->lk_group, 866 rc = libcfs_kkuc_group_add(filp, lk->lk_uid, lk->lk_group,
867 &kcd, sizeof(kcd)); 867 &kcd, sizeof(kcd));
868 if (rc && filp) 868 if (rc)
869 fput(filp); 869 fput(filp);
870 870
871 return rc; 871 return rc;