]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: sun: remove redundant variables adv and lpa and mii_reads
authorColin Ian King <colin.king@canonical.com>
Thu, 5 Jul 2018 11:05:25 +0000 (12:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2018 11:07:40 +0000 (20:07 +0900)
commit1130d0967e11ee89770be3527248cb1d3fe51255
tree6b56b4cbfb80be933a4c4095ebd4748c4c7f9aae
parent50df914c2d87b7fa940d14ee0dd6fa775d1158b8
net: ethernet: sun: remove redundant variables adv and lpa and mii_reads

Variables adv and lpa are being assigned but are never used hence they
are redundant and can be removed.  Also remove the unncessary mii_reads
too.

Cleans up clang warnings:
warning: variable 'lpa' set but not used [-Wunused-but-set-variable]
warning: variable 'adv' 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/sun/niu.c