diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-12-10 04:50:09 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-11 04:31:32 +0100 |
commit | 5535ec7600ab2fc316512d6fb15e8ec077878934 (patch) | |
tree | 59aa9fe326a191b7ebb8ae6b11466f63e4010da3 /drivers/net/vmxnet3 | |
parent | net: fddi: remove unnecessary pci_set_drvdata() (diff) | |
download | linux-5535ec7600ab2fc316512d6fb15e8ec077878934.tar.xz linux-5535ec7600ab2fc316512d6fb15e8ec077878934.zip |
net: vmxnet3: 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>
Signed-off-by: Shreyas N Bhatewara <sbhatewara@vmware.com>
Acked-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vmxnet3')
-rw-r--r-- | drivers/net/vmxnet3/vmxnet3_drv.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c index 7e2788c488ed..a300a18c550a 100644 --- a/drivers/net/vmxnet3/vmxnet3_drv.c +++ b/drivers/net/vmxnet3/vmxnet3_drv.c @@ -3132,7 +3132,6 @@ err_alloc_queue_desc: err_alloc_shared: dma_unmap_single(&adapter->pdev->dev, adapter->adapter_pa, sizeof(struct vmxnet3_adapter), PCI_DMA_TODEVICE); - pci_set_drvdata(pdev, NULL); free_netdev(netdev); return err; } |