mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
rds:Remove unnecessary ib_ring unalloc
In the function rds_ib_xmit_atomic, ib_ring is not allocated successfully. As such, it is not necessary to unalloc it. Cc: Joe Jin <[email protected]> Cc: Junxiao Bi <[email protected]> Signed-off-by: Zhu Yanjun <[email protected]> Acked-by: Santosh Shilimkar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3b4735281f
commit
d2c58294f5
1 changed files with 0 additions and 1 deletions
|
|
@ -770,7 +770,6 @@ int rds_ib_xmit_atomic(struct rds_connection *conn, struct rm_atomic_op *op)
|
|||
|
||||
work_alloc = rds_ib_ring_alloc(&ic->i_send_ring, 1, &pos);
|
||||
if (work_alloc != 1) {
|
||||
rds_ib_ring_unalloc(&ic->i_send_ring, work_alloc);
|
||||
rds_ib_stats_inc(s_ib_tx_ring_full);
|
||||
ret = -ENOMEM;
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue