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
@@ -3078,8 +3078,6 @@ static void udc_pci_remove(struct pci_dev *pdev)
|
||||
if (dev->active)
|
||||
pci_disable_device(pdev);
|
||||
|
||||
pci_set_drvdata(pdev, NULL);
|
||||
|
||||
udc_remove(dev);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user