aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igbvf
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/igbvf')
-rw-r--r--drivers/net/igbvf/netdev.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c
index 1e7bfca79a58..4c998b7726da 100644
--- a/drivers/net/igbvf/netdev.c
+++ b/drivers/net/igbvf/netdev.c
@@ -1852,8 +1852,6 @@ static void igbvf_watchdog_task(struct work_struct *work)
1852 1852
1853 if (link) { 1853 if (link) {
1854 if (!netif_carrier_ok(netdev)) { 1854 if (!netif_carrier_ok(netdev)) {
1855 bool txb2b = 1;
1856
1857 mac->ops.get_link_up_info(&adapter->hw, 1855 mac->ops.get_link_up_info(&adapter->hw,
1858 &adapter->link_speed, 1856 &adapter->link_speed,
1859 &adapter->link_duplex); 1857 &adapter->link_duplex);
@@ -1863,11 +1861,9 @@ static void igbvf_watchdog_task(struct work_struct *work)
1863 adapter->tx_timeout_factor = 1; 1861 adapter->tx_timeout_factor = 1;
1864 switch (adapter->link_speed) { 1862 switch (adapter->link_speed) {
1865 case SPEED_10: 1863 case SPEED_10:
1866 txb2b = 0;
1867 adapter->tx_timeout_factor = 16; 1864 adapter->tx_timeout_factor = 16;
1868 break; 1865 break;
1869 case SPEED_100: 1866 case SPEED_100:
1870 txb2b = 0;
1871 /* maybe add some timeout factor ? */ 1867 /* maybe add some timeout factor ? */
1872 break; 1868 break;
1873 } 1869 }