diff options
author | Zhu Yanjun | 2017-02-17 04:16:22 -0500 |
---|---|---|
committer | David S. Miller | 2017-02-17 15:19:51 -0500 |
commit | d2c58294f5416467ae0c5d00675bce3cd19595dd (patch) | |
tree | 24e67fe61cf1de67b0b939bca6f0cbc21ab9e1a8 /net/rds | |
parent | 3b4735281f67b0aa62bf74c8a1a7758c17f7158d (diff) |
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 <joe.jin@oracle.com>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds')
-rw-r--r-- | net/rds/ib_send.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c index 5e72de10c484..6ab39dbcca01 100644 --- a/net/rds/ib_send.c +++ b/net/rds/ib_send.c @@ -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; |