]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: remove a couple of redundant assignments
authorColin Ian King <colin.king@canonical.com>
Tue, 31 Oct 2017 14:37:55 +0000 (14:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 12:29:08 +0000 (21:29 +0900)
commit8e17a985cde13c2066feb356186759a02e9402b4
tree7f3b1f62599fd816ce8eb6a740f9d5c9a4517fd2
parent3804477e42a3e7c6f080cc0b665796ddb214f451
net: thunderx: remove a couple of redundant assignments

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 <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nic_main.c