mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
rds: ib: remove redundant ib_dealloc_fmr
The function ib_dealloc_fmr will never be called. As such, it should be removed. Cc: Joe Jin <[email protected]> Cc: Junxiao Bi <[email protected]> Reviewed-by: Yuval Shaia <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Acked-by: Santosh Shilimkar <[email protected]> Signed-off-by: Zhu Yanjun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
b418c5276a
commit
ea69c88364
1 changed files with 2 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue