usb: gadget: Remove redundant pci_set_drvdata
Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
b85862654c
commit
d47aa4536d
@@ -2680,7 +2680,6 @@ static void net2280_remove (struct pci_dev *pdev)
|
||||
if (dev->enabled)
|
||||
pci_disable_device (pdev);
|
||||
device_remove_file (&pdev->dev, &dev_attr_registers);
|
||||
pci_set_drvdata (pdev, NULL);
|
||||
|
||||
INFO (dev, "unbind\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user