From: Sandhya Bankar Date: Mon, 19 Sep 2016 18:29:36 +0000 (+0530) Subject: Staging: lustre: lmv_obd: Remove redundant test. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=024931694730a2ad31bc1e7c58a028abe441180b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging: lustre: lmv_obd: Remove redundant test. filp != NULL is already checked, so no need to check it again. Signed-off-by: Sandhya Bankar Reviewed-by: James Simmons Signed-off-by: Greg Kroah-Hartman --- 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, rc = libcfs_kkuc_group_add(filp, lk->lk_uid, lk->lk_group, &kcd, sizeof(kcd)); - if (rc && filp) + if (rc) fput(filp); return rc;