diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-09-20 02:04:38 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-19 23:09:23 -0700 |
commit | da2cfbd3e75675f19363a0f16c4234b462dd5bcc (patch) | |
tree | 4917e8b8624319fa995d2f97beb2936cf019a571 /drivers/net/ethernet/intel/e1000 | |
parent | 684d777a3382da53eb6688b92f7626eb526be0a6 (diff) | |
download | linux-da2cfbd3e75675f19363a0f16c4234b462dd5bcc.tar.gz |
e1000: remove set but not used variable 'txb2b'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/ethernet/intel/e1000/e1000_main.c: In function 'e1000_watchdog':
drivers/net/ethernet/intel/e1000/e1000_main.c:2436:9: warning:
variable 'txb2b' set but not used [-Wunused-but-set-variable]
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/e1000')
-rw-r--r-- | drivers/net/ethernet/intel/e1000/e1000_main.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c index 7e0f1f96a8a1..43b6d3cec3b3 100644 --- a/drivers/net/ethernet/intel/e1000/e1000_main.c +++ b/drivers/net/ethernet/intel/e1000/e1000_main.c @@ -2433,7 +2433,6 @@ static void e1000_watchdog(struct work_struct *work) if (link) { if (!netif_carrier_ok(netdev)) { u32 ctrl; - bool txb2b = true; /* update snapshot of PHY registers on LSC */ e1000_get_speed_and_duplex(hw, &adapter->link_speed, @@ -2455,11 +2454,9 @@ static void e1000_watchdog(struct work_struct *work) adapter->tx_timeout_factor = 1; switch (adapter->link_speed) { case SPEED_10: - txb2b = false; adapter->tx_timeout_factor = 16; break; case SPEED_100: - txb2b = false; /* maybe add some timeout factor ? */ break; } |