]> git.baikalelectronics.ru Git - kernel.git/commit
rds: Remove redundant assignment to nr_sig
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tue, 27 Apr 2021 10:24:47 +0000 (18:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Apr 2021 21:14:33 +0000 (14:14 -0700)
commitc06f1b0c035f60c4a09a1bd482df1a9da394f4f8
tree69d8e58b423975be40cc86c0530a7162bbbb4ce4
parent57fb0b0bdc4fa2a8ba0c2167aa1ecb0e1dcc7e74
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>
net/rds/ib_send.c