Staging: lustre: lmv_obd: Remove redundant test.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Mon, 19 Sep 2016 18:29:36 +0000 (23:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:23:40 +0000 (13:23 +0200)
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>
drivers/staging/lustre/lustre/lmv/lmv_obd.c

index dad572eb76ece26cb8e053e33b95fc0ec7f37779..7dbb2b946acf56e90eaad6992ff34d3555a5951f 100644 (file)
@@ -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;