Skip to content

Commit

Permalink
rds: ib: remove redundant ib_dealloc_fmr
Browse files Browse the repository at this point in the history
The function ib_dealloc_fmr will never be called. As such, it should
be removed.

Cc: Joe Jin <joe.jin@oracle.com>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Zhu Yanjun authored and David S. Miller committed Mar 14, 2017
1 parent b418c52 commit ea69c88
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions net/rds/ib_fmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,9 @@ struct rds_ib_mr *rds_ib_alloc_fmr(struct rds_ib_device *rds_ibdev, int npages)
return ibmr;

out_no_cigar:
if (ibmr) {
if (fmr->fmr)
ib_dealloc_fmr(fmr->fmr);
kfree(ibmr);
}
kfree(ibmr);
atomic_dec(&pool->item_count);

return ERR_PTR(err);
}

Expand Down

0 comments on commit ea69c88

Please sign in to comment.