Skip to content

Commit

Permalink
rds: Remove redundant assignment to nr_sig
Browse files Browse the repository at this point in the history
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@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jiapeng Chong authored and davem330 committed Apr 27, 2021
1 parent 733933a commit 4db6187
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/rds/ib_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4db6187

Please sign in to comment.