OSDN Git Service

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)
commit4ed88df766704633459d8fddce1c1c87e1acb844
tree6b56b4cbfb80be933a4c4095ebd4748c4c7f9aae
parent2727eac605bb4787ae43eff6e022196f5297e329
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