diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-12-10 12:50:09 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-10 22:31:32 -0500 |
commit | 5535ec7600ab2fc316512d6fb15e8ec077878934 (patch) | |
tree | 59aa9fe326a191b7ebb8ae6b11466f63e4010da3 /drivers/net/vmxnet3 | |
parent | 49f74ed6da4d70adc81be36f4dde22fa23f28171 (diff) | |
download | op-kernel-dev-5535ec7600ab2fc316512d6fb15e8ec077878934.zip op-kernel-dev-5535ec7600ab2fc316512d6fb15e8ec077878934.tar.gz |
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 7e2788c..a300a18 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; } |