[PATCH] net: thunderx: remove a couple of redundant assignments

From
David Miller <davem@davemloft.net>
Date
2017-11-01 12:30:56
Also in
kernel-janitors, lkml, netdev
Reply to
Colin King, 2017-10-31
From: Colin King <redacted>
Date: Tue, 31 Oct 2017 14:37:55 +0000
From: Colin Ian King <redacted>

The assignment to pointer msg is redundant as it is never read, so
remove msg.  Also remove the first assignment to qset as this is not
read before the next re-assignment of a new value to qset in the
for-loop. Cleans up two clang warnings:

drivers/net/ethernet/cavium/thunder/nic_main.c:589:2: warning: Value
stored to 'msg' is never read
drivers/net/ethernet/cavium/thunder/nic_main.c:611:2: warning: Value
stored to 'qset' is never read

Signed-off-by: Colin Ian King <redacted>
Applied.
Thread (2 messages) 2 messages, 2 authors, last reply 2017-11-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help