lan743x: remove redundant initialization of variable current_head_index
authorColin Ian King <colin.king@canonical.com>
Wed, 22 Jul 2020 15:12:21 +0000 (16:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jul 2020 00:55:35 +0000 (17:55 -0700)
commitbb809a047eb5070e2fc76aa62d111fbbe656c532
tree7b2140839915218354d5a712aab4511ceb5c9c51
parentc6dd6488acd105f4fde9b4d289aaef5669b12c76
lan743x: remove redundant initialization of variable current_head_index

The variable current_head_index is being initialized with a value that
is never read and it is being updated later with a new value.  Replace
the initialization of -1 with the latter assignment.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan743x_main.c