mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
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:
parent
bda301c9dc
commit
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user