mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
net: netrom: nr_in: Remove redundant assignment to ns
Variable ns is set to 'skb->data[17]' but this value is never read as it is overwritten or not used later on, hence it is a redundant assignment and can be removed. Cleans up the following clang-analyzer warning: net/netrom/nr_in.c:156:2: warning: Value stored to 'ns' 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> Link: https://lore.kernel.org/r/1619603885-115604-1-git-send-email-jiapeng.chong@linux.alibaba.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
808337bec7
commit
15c0a64bfc
1 changed files with 0 additions and 1 deletions
|
@ -153,7 +153,6 @@ static int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype
|
||||||
int queued = 0;
|
int queued = 0;
|
||||||
|
|
||||||
nr = skb->data[18];
|
nr = skb->data[18];
|
||||||
ns = skb->data[17];
|
|
||||||
|
|
||||||
switch (frametype) {
|
switch (frametype) {
|
||||||
case NR_CONNREQ:
|
case NR_CONNREQ:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue