]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: rxkad: Remove redundant variable offset
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Mon, 26 Apr 2021 10:13:03 +0000 (18:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Apr 2021 21:05:06 +0000 (14:05 -0700)
commit018b00df592c73fbd5c63713aa47d47619f7451c
tree71405afc1099f37bb94270553cabe03ed5512c97
parent088ce8ad96d3bd23891ecb4796101c268341bea4
rxrpc: rxkad: Remove redundant variable offset

Variable offset is being assigned a value from a calculation
however the variable is never read, so this redundant variable
can be removed.

Cleans up the following clang-analyzer warning:

net/rxrpc/rxkad.c:579:2: warning: Value stored to 'offset' is never read
[clang-analyzer-deadcode.DeadStores].

net/rxrpc/rxkad.c:485:2: warning: Value stored to 'offset' 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/rxrpc/rxkad.c