staging: unisys: visornic: Remove errant -EIO returns
authorDavid Binder <david.binder@unisys.com>
Mon, 9 Jan 2017 18:02:26 +0000 (13:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jan 2017 16:29:46 +0000 (17:29 +0100)
Remove errant -EIOs that prevent us from calling either
netif_start_queue() or napi_disable().

Signed-off-by: David Binder <david.binder@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c

index cbc88100021a07b041ee819a8425e434b67ff0e5..3a638cad2a1d969ff4f9709df0b61dff7e13a7b0 100644 (file)
@@ -464,7 +464,7 @@ visornic_disable_with_timeout(struct net_device *netdev, const int timeout)
                        spin_unlock_irqrestore(&devdata->priv_lock, flags);
                        dev_dbg(&netdev->dev, "%s server went away\n",
                                __func__);
-                       return -EIO;
+                       break;
                }
                set_current_state(TASK_INTERRUPTIBLE);
                spin_unlock_irqrestore(&devdata->priv_lock, flags);
@@ -608,7 +608,7 @@ visornic_enable_with_timeout(struct net_device *netdev, const int timeout)
                        spin_unlock_irqrestore(&devdata->priv_lock, flags);
                        dev_dbg(&netdev->dev, "%s server went away\n",
                                __func__);
-                       return -EIO;
+                       break;
                }
                set_current_state(TASK_INTERRUPTIBLE);
                spin_unlock_irqrestore(&devdata->priv_lock, flags);