diff options
author | Zhu Yanjun <yanjun.zhu@oracle.com> | 2017-02-17 10:16:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-17 21:19:51 +0100 |
commit | d2c58294f5416467ae0c5d00675bce3cd19595dd (patch) | |
tree | 24e67fe61cf1de67b0b939bca6f0cbc21ab9e1a8 /net/rds | |
parent | nfp: Use PCI_DEVICE_ID_NETRONOME_NFP* defines (diff) | |
download | linux-d2c58294f5416467ae0c5d00675bce3cd19595dd.tar.xz linux-d2c58294f5416467ae0c5d00675bce3cd19595dd.zip |
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; |