[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1619519087-55904-1-git-send-email-jiapeng.chong@linux.alibaba.com>
Date: Tue, 27 Apr 2021 18:24:47 +0800
From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To: santosh.shilimkar@...cle.com
Cc: davem@...emloft.net, kuba@...nel.org, netdev@...r.kernel.org,
inux-rdma@...r.kernel.org, rds-devel@....oracle.com,
linux-kernel@...r.kernel.org,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Subject: [PATCH] rds: Remove redundant assignment to nr_sig
Variable nr_sig is being assigned a value however the assignment is
never read, so this redundant assignment can be removed.
Cleans up the following clang-analyzer warning:
net/rds/ib_send.c:297:2: warning: Value stored to 'nr_sig' is never read
[clang-analyzer-deadcode.DeadStores].
Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
---
net/rds/ib_send.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c
index 92b4a86..4190b90 100644
--- a/net/rds/ib_send.c
+++ b/net/rds/ib_send.c
@@ -294,7 +294,6 @@ void rds_ib_send_cqe_handler(struct rds_ib_connection *ic, struct ib_wc *wc)
rds_ib_ring_free(&ic->i_send_ring, completed);
rds_ib_sub_signaled(ic, nr_sig);
- nr_sig = 0;
if (test_and_clear_bit(RDS_LL_SEND_FULL, &conn->c_flags) ||
test_bit(0, &conn->c_map_queued))
--
1.8.3.1
Powered by blists - more mailing lists