summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/pasemi/pasemi_mac.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-10-22 13:14:45 +0900
committerDavid S. Miller <davem@davemloft.net>2013-10-22 02:11:51 -0400
commitaa13876d90e09d54d6b801bf1d264e5f83a6915f (patch)
tree38f7363931c8b1014316ab2ec50bffef75d4bdb0 /drivers/net/ethernet/pasemi/pasemi_mac.c
parentbda301c9dc545f81bd70c1eecb8572bfc5eb524c (diff)
downloadblackbird-obmc-linux-aa13876d90e09d54d6b801bf1d264e5f83a6915f.tar.gz
blackbird-obmc-linux-aa13876d90e09d54d6b801bf1d264e5f83a6915f.zip
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>
Diffstat (limited to 'drivers/net/ethernet/pasemi/pasemi_mac.c')
-rw-r--r--drivers/net/ethernet/pasemi/pasemi_mac.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/pasemi/pasemi_mac.c b/drivers/net/ethernet/pasemi/pasemi_mac.c
index 5b65356e7568..dbaa49e58b0c 100644
--- a/drivers/net/ethernet/pasemi/pasemi_mac.c
+++ b/drivers/net/ethernet/pasemi/pasemi_mac.c
@@ -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);
}
OpenPOWER on IntegriCloud