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)
commita95157d72d638913422773ea6faa384ebe4d366d
tree7f3b1f62599fd816ce8eb6a740f9d5c9a4517fd2
parent855a34b1b4893c7d9fd39e3f61834354f2149ba7
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