]> git.karo-electronics.de Git - linux-beck.git/commitdiff
net: vmxnet3: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Tue, 10 Dec 2013 03:50:09 +0000 (12:50 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2013 03:31:32 +0000 (22:31 -0500)
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>
drivers/net/vmxnet3/vmxnet3_drv.c

index 7e2788c488edce4536fa0039337b5b267d2dc270..a300a18c550a82ecb69832f06d35f51813fc21b8 100644 (file)
@@ -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;
 }