]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita33165b7fb01b644090ad5f1d17aebc7b7dff2d5
tree5cbfc715ce390ef0698e57f30d709b324a6e43b2
parent5c821727b2a8608b1f3277b9eeb80918e497f402
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