Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315421
b: refs/heads/master
c: fd13a9a
h: refs/heads/master
i:
  315419: 79bab6c
v: v3
  • Loading branch information
Alexander Duyck authored and Jeff Kirsher committed Jul 17, 2012
1 parent 04480bf commit 6b71272
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 77d5dfca41ef00dbe4368ba05297adc32d5e5741
refs/heads/master: fd13a9abeb8d487e2a3cfd2166542c180d33acc9
1 change: 0 additions & 1 deletion trunk/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ struct ixgbevf_adapter {
bool link_up;

struct work_struct watchdog_task;
bool netdev_registered;
};

enum ixbgevf_state_t {
Expand Down
6 changes: 1 addition & 5 deletions trunk/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3297,8 +3297,6 @@ static int __devinit ixgbevf_probe(struct pci_dev *pdev,
if (err)
goto err_register;

adapter->netdev_registered = true;

netif_carrier_off(netdev);

ixgbevf_init_last_counter_stats(adapter);
Expand Down Expand Up @@ -3347,10 +3345,8 @@ static void __devexit ixgbevf_remove(struct pci_dev *pdev)
cancel_work_sync(&adapter->reset_task);
cancel_work_sync(&adapter->watchdog_task);

if (adapter->netdev_registered) {
if (netdev->reg_state == NETREG_REGISTERED)
unregister_netdev(netdev);
adapter->netdev_registered = false;
}

ixgbevf_reset_interrupt_capability(adapter);

Expand Down

0 comments on commit 6b71272

Please sign in to comment.