diff options
author | luo penghao <cgel.zte@gmail.com> | 2021-10-18 11:55:13 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-19 15:10:44 +0300 |
commit | 3c71e0c9ab4f428f4daeb451f6f7008a979f154a (patch) | |
tree | 15494e160a08e156a4b19cfd5b7ddfed01dc384c /drivers/net/ethernet/broadcom/tg3.c | |
parent | 92817dad7dcb781561dcebbf1b19a177774d84c2 (diff) | |
download | linux-3c71e0c9ab4f428f4daeb451f6f7008a979f154a.tar.xz |
ethernet: Remove redundant statement
The variable will be assigned again later in the if condition,
there is no meaning there.
drivers/net/ethernet/broadcom/tg3.c:5750:2 warning:
Value stored to 'current_link_up' is never read.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: luo penghao <luo.penghao@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/tg3.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/tg3.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index e9518b98914b..b1328c5524b5 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c @@ -5747,7 +5747,6 @@ static int tg3_setup_fiber_phy(struct tg3 *tp, bool force_reset) tw32_f(MAC_EVENT, MAC_EVENT_LNKSTATE_CHANGED); udelay(40); - current_link_up = false; tp->link_config.rmt_adv = 0; mac_status = tr32(MAC_STATUS); |