net: pasemi: remove unnecessary pci_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Olof Johansson <olof@lixom.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
bda301c9dc
Коммит
aa13876d90
|
@ -1870,7 +1870,6 @@ static void pasemi_mac_remove(struct pci_dev *pdev)
|
|||
pasemi_dma_free_chan(&mac->tx->chan);
|
||||
pasemi_dma_free_chan(&mac->rx->chan);
|
||||
|
||||
pci_set_drvdata(pdev, NULL);
|
||||
free_netdev(netdev);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче