Skip to contentSkip to conversation

rds: Remove redundant assignment to nr_sig

PATCH Applied Jiapeng Chong 2 participants 2 messages Apr 27, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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].

---
 net/rds/ib_send.c | 1 -
 1 file changed, 1 deletion(-)
net/rds/ib_send.c +0 -1
index 92b4a86..4190b90 100644
@@ -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))
Signature · 1 line
1.8.3.1
#1 lore raw
This patch was applied to netdev/net-next.git (refs/heads/master):

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

Quoted 9 lines · On Tue, 27 Apr 2021 18:24:47 +0800 you wrote:

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].

[...]

Here is the summary with links:
- rds: Remove redundant assignment to nr_sig

    https://git.kernel.org/netdev/net-next/c/4db6187d721e

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html