net: alx: remove redundant variable old_duplex
authorColin Ian King <colin.king@canonical.com>
Wed, 4 Jul 2018 07:15:30 +0000 (08:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jul 2018 13:39:10 +0000 (22:39 +0900)
commit371b4fc33b2e32bd18fc139d2fb8b508ea66fe50
tree5cbfc715ce390ef0698e57f30d709b324a6e43b2
parent3ff39a21640efd469c8b9d96e34d281deed0c6f6
net: alx: remove redundant variable old_duplex

Variable old_duplex is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
warning: variable 'old_duplex' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/alx/main.c