Commit 35a8dd31 authored by Neil Horman's avatar Neil Horman Committed by Greg Kroah-Hartman

staging: unisys: Remove some extraneous start/stop queue operations

If we put them in the enable and disable paths, we don't need them in
several other places
Signed-off-by: default avatarNeil Horman <nhorman@redhat.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0c677e9c
...@@ -709,6 +709,7 @@ visornic_enable_with_timeout(struct net_device *netdev, const int timeout) ...@@ -709,6 +709,7 @@ visornic_enable_with_timeout(struct net_device *netdev, const int timeout)
return -EIO; return -EIO;
} }
netif_start_queue(netdev);
return 0; return 0;
} }
...@@ -730,7 +731,6 @@ visornic_timeout_reset(struct work_struct *work) ...@@ -730,7 +731,6 @@ visornic_timeout_reset(struct work_struct *work)
devdata = container_of(work, struct visornic_devdata, timeout_reset); devdata = container_of(work, struct visornic_devdata, timeout_reset);
netdev = devdata->netdev; netdev = devdata->netdev;
netif_stop_queue(netdev);
response = visornic_disable_with_timeout(netdev, response = visornic_disable_with_timeout(netdev,
VISORNIC_INFINITE_RSP_WAIT); VISORNIC_INFINITE_RSP_WAIT);
if (response) if (response)
...@@ -740,7 +740,6 @@ visornic_timeout_reset(struct work_struct *work) ...@@ -740,7 +740,6 @@ visornic_timeout_reset(struct work_struct *work)
VISORNIC_INFINITE_RSP_WAIT); VISORNIC_INFINITE_RSP_WAIT);
if (response) if (response)
goto call_serverdown; goto call_serverdown;
netif_wake_queue(netdev);
return; return;
...@@ -760,11 +759,6 @@ visornic_open(struct net_device *netdev) ...@@ -760,11 +759,6 @@ visornic_open(struct net_device *netdev)
{ {
visornic_enable_with_timeout(netdev, VISORNIC_INFINITE_RSP_WAIT); visornic_enable_with_timeout(netdev, VISORNIC_INFINITE_RSP_WAIT);
/* start the interface's transmit queue, allowing it to accept
* packets for transmission
*/
netif_start_queue(netdev);
return 0; return 0;
} }
...@@ -778,7 +772,6 @@ visornic_open(struct net_device *netdev) ...@@ -778,7 +772,6 @@ visornic_open(struct net_device *netdev)
static int static int
visornic_close(struct net_device *netdev) visornic_close(struct net_device *netdev)
{ {
netif_stop_queue(netdev);
visornic_disable_with_timeout(netdev, VISORNIC_INFINITE_RSP_WAIT); visornic_disable_with_timeout(netdev, VISORNIC_INFINITE_RSP_WAIT);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment