Commit 6bdd9416 authored by Lino Sanfilippo's avatar Lino Sanfilippo Committed by Kleber Sacilotto de Souza

net: ena: remove superfluous check in ena_remove()

BugLink: http://bugs.launchpad.net/bugs/1701575

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: default avatarLino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
(cherry picked from commit 90a6c997)
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
Acked-by: default avatarSeth Forshee <seth.forshee@canonical.com>
Acked-by: default avatarBrad Figg <brad.figg@canonical.com>
parent 467e7b4c
......@@ -3156,12 +3156,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;
......
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