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>
This commit is contained in:
parent
2317c6b51e
commit
90a6c997bd
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue