ethernet: Remove redundant statement
authorluo penghao <cgel.zte@gmail.com>
Mon, 18 Oct 2021 08:55:13 +0000 (08:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Oct 2021 12:10:44 +0000 (13:10 +0100)
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>
drivers/net/ethernet/broadcom/tg3.c

index e9518b98914b45f9110211df188f31e6a9e8bf7e..b1328c5524b535ea7704f278069beb5fbf1a2a1f 100644 (file)
@@ -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);