Skip to content

Commit

Permalink
igbvf: Remove some dead code in igbvf
Browse files Browse the repository at this point in the history
Removed unused variable in igbvf.

Signed-off-by: Julian Stecklina <jsteckli@os.inf.tu-dresden.de>
Acked-by: Greg Rose <greg.v.rose@intel.com>
Tested-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
  • Loading branch information
Julian Stecklina authored and Jeff Kirsher committed Nov 17, 2010
1 parent 2c20ebb commit eca2a33
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/igbvf/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1852,8 +1852,6 @@ static void igbvf_watchdog_task(struct work_struct *work)

if (link) {
if (!netif_carrier_ok(netdev)) {
bool txb2b = 1;

mac->ops.get_link_up_info(&adapter->hw,
&adapter->link_speed,
&adapter->link_duplex);
Expand All @@ -1863,11 +1861,9 @@ static void igbvf_watchdog_task(struct work_struct *work)
adapter->tx_timeout_factor = 1;
switch (adapter->link_speed) {
case SPEED_10:
txb2b = 0;
adapter->tx_timeout_factor = 16;
break;
case SPEED_100:
txb2b = 0;
/* maybe add some timeout factor ? */
break;
}
Expand Down

0 comments on commit eca2a33

Please sign in to comment.