提交 90a6c997 编写于 作者: L Lino Sanfilippo 提交者: David S. Miller

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: NLino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 2317c6b5
...@@ -3163,12 +3163,6 @@ static void ena_remove(struct pci_dev *pdev) ...@@ -3163,12 +3163,6 @@ static void ena_remove(struct pci_dev *pdev)
struct ena_com_dev *ena_dev; struct ena_com_dev *ena_dev;
struct net_device *netdev; 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; ena_dev = adapter->ena_dev;
netdev = adapter->netdev; netdev = adapter->netdev;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册