diff options
Diffstat (limited to 'drivers/net/netxen')
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index f7bdde111dfc..b8c723539dd2 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -1903,12 +1903,13 @@ static void netxen_tx_timeout_task(struct work_struct *work) | |||
1903 | 1903 | ||
1904 | netif_wake_queue(adapter->netdev); | 1904 | netif_wake_queue(adapter->netdev); |
1905 | 1905 | ||
1906 | goto done; | 1906 | clear_bit(__NX_RESETTING, &adapter->state); |
1907 | 1907 | ||
1908 | } else { | 1908 | } else { |
1909 | clear_bit(__NX_RESETTING, &adapter->state); | ||
1909 | if (!netxen_nic_reset_context(adapter)) { | 1910 | if (!netxen_nic_reset_context(adapter)) { |
1910 | adapter->netdev->trans_start = jiffies; | 1911 | adapter->netdev->trans_start = jiffies; |
1911 | goto done; | 1912 | return; |
1912 | } | 1913 | } |
1913 | 1914 | ||
1914 | /* context reset failed, fall through for fw reset */ | 1915 | /* context reset failed, fall through for fw reset */ |
@@ -1916,8 +1917,6 @@ static void netxen_tx_timeout_task(struct work_struct *work) | |||
1916 | 1917 | ||
1917 | request_reset: | 1918 | request_reset: |
1918 | adapter->need_fw_reset = 1; | 1919 | adapter->need_fw_reset = 1; |
1919 | done: | ||
1920 | clear_bit(__NX_RESETTING, &adapter->state); | ||
1921 | } | 1920 | } |
1922 | 1921 | ||
1923 | struct net_device_stats *netxen_nic_get_stats(struct net_device *netdev) | 1922 | struct net_device_stats *netxen_nic_get_stats(struct net_device *netdev) |