Skip to content

Commit 15c0a64

Browse files
Jiapeng Chongkuba-moo
authored andcommitted
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 <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Link: https://lore.kernel.org/r/1619603885-115604-1-git-send-email-jiapeng.chong@linux.alibaba.com Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 808337b commit 15c0a64

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/netrom/nr_in.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ static int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype
153153
int queued = 0;
154154

155155
nr = skb->data[18];
156-
ns = skb->data[17];
157156

158157
switch (frametype) {
159158
case NR_CONNREQ:

0 commit comments

Comments
 (0)