summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/amazon
diff options
context:
space:
mode:
authorLino Sanfilippo <LinoSanfilippo@gmx.de>2017-02-18 12:19:41 +0100
committerDavid S. Miller <davem@davemloft.net>2017-02-20 10:22:59 -0500
commit90a6c997bd8bb836809eda5efb6406d8c58c0924 (patch)
tree8c041460e96297f8090d870ab9f934d8e7ee8a18 /drivers/net/ethernet/amazon
parent2317c6b51e4249dbfa093e1b88cab0a9f0564b7f (diff)
net: ena: remove superfluous check in ena_remove()
The check in ena_remove() for the pci driver data not being NULL is not needed, since it is always set in the probe() function. Remove the superfluous check. Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amazon')
-rw-r--r--drivers/net/ethernet/amazon/ena/ena_netdev.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c b/drivers/net/ethernet/amazon/ena/ena_netdev.c
index d8c920be5e91..35f19430c84a 100644
--- a/drivers/net/ethernet/amazon/ena/ena_netdev.c
+++ b/drivers/net/ethernet/amazon/ena/ena_netdev.c
@@ -3163,12 +3163,6 @@ static void ena_remove(struct pci_dev *pdev)
struct ena_com_dev *ena_dev;
struct net_device *netdev;
- if (!adapter)
- /* This device didn't load properly and it's resources
- * already released, nothing to do
- */
- return;
-
ena_dev = adapter->ena_dev;
netdev = adapter->netdev;