Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jiapeng Chong and committed by
David S. Miller
4db6187d 733933a9

-1
-1
net/rds/ib_send.c
··· 294 294 295 295 rds_ib_ring_free(&ic->i_send_ring, completed); 296 296 rds_ib_sub_signaled(ic, nr_sig); 297 - nr_sig = 0; 298 297 299 298 if (test_and_clear_bit(RDS_LL_SEND_FULL, &conn->c_flags) || 300 299 test_bit(0, &conn->c_map_queued))