diff options
author | Sandhya Bankar <bankarsandhya512@gmail.com> | 2016-09-19 18:29:36 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-20 11:23:40 (GMT) |
commit | 024931694730a2ad31bc1e7c58a028abe441180b (patch) | |
tree | dd23c371d095979afd951dc847a20993211232a2 /drivers | |
parent | 83a75e3f14667b334ecd53b6334407ace8679eed (diff) | |
download | linux-024931694730a2ad31bc1e7c58a028abe441180b.tar.xz |
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')
-rw-r--r-- | drivers/staging/lustre/lustre/lmv/lmv_obd.c | 2 |
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 dad572eb..7dbb2b9 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; |