summaryrefslogtreecommitdiffstats
path: root/net/rds
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-08-01 15:14:07 +0800
committerDavid S. Miller <davem@davemloft.net>2018-08-01 10:00:54 -0700
commit87f70132b08eadc19e5a78e43b814366f9929399 (patch)
tree1a5d47ea3accb7b286936002dc9ed062f2873fc2 /net/rds
parentbd707f17efc9e5dfc0fd05370cb89d2ee41d3558 (diff)
downloadlinux-87f70132b08eadc19e5a78e43b814366f9929399.tar.gz
linux-87f70132b08eadc19e5a78e43b814366f9929399.tar.bz2
linux-87f70132b08eadc19e5a78e43b814366f9929399.zip
rds: remove redundant variable 'rds_ibdev'
Variable 'rds_ibdev' is being assigned but never used, so can be removed. fix this clang warning: net/rds/ib_send.c:762:24: warning: variable ‘rds_ibdev’ set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds')
-rw-r--r--net/rds/ib_send.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c
index c4cdfe491d96..c8dd3125d398 100644
--- a/net/rds/ib_send.c
+++ b/net/rds/ib_send.c
@@ -759,14 +759,11 @@ int rds_ib_xmit_atomic(struct rds_connection *conn, struct rm_atomic_op *op)
struct rds_ib_connection *ic = conn->c_transport_data;
struct rds_ib_send_work *send = NULL;
struct ib_send_wr *failed_wr;
- struct rds_ib_device *rds_ibdev;
u32 pos;
u32 work_alloc;
int ret;
int nr_sig = 0;
- rds_ibdev = ib_get_client_data(ic->i_cm_id->device, &rds_ib_client);
-
work_alloc = rds_ib_ring_alloc(&ic->i_send_ring, 1, &pos);
if (work_alloc != 1) {
rds_ib_stats_inc(s_ib_tx_ring_full);