From: Sandhya Bankar Date: Sat, 17 Sep 2016 22:59:54 +0000 (+0530) Subject: Staging: lustre: lmv_obd: Remove redundant if-statement. X-Git-Tag: v4.9.8~1233^2~509 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2576177cce7f1b5d04035a98bd1e27935fdb5fa;p=platform%2Fkernel%2Flinux-rpi3.git Staging: lustre: lmv_obd: Remove redundant if-statement. Remove redundant if-statement. Signed-off-by: Sandhya Bankar 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 5783359..0713e55 100644 --- a/drivers/staging/lustre/lustre/lmv/lmv_obd.c +++ b/drivers/staging/lustre/lustre/lmv/lmv_obd.c @@ -949,10 +949,8 @@ 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) { - if (filp) - fput(filp); - } + if (rc && filp) + fput(filp); return rc; }