Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8586265 authored by Sachin Kamat's avatar Sachin Kamat Committed by Greg Kroah-Hartman
Browse files

usb: dwc3: Remove redundant pci_set_drvdata



Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c22600c3
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -164,7 +164,6 @@ static int dwc3_pci_probe(struct pci_dev *pci,
	return 0;

err3:
	pci_set_drvdata(pci, NULL);
	platform_device_put(dwc3);
err1:
	pci_disable_device(pci);
@@ -179,7 +178,6 @@ static void dwc3_pci_remove(struct pci_dev *pci)
	platform_device_unregister(glue->dwc3);
	platform_device_unregister(glue->usb2_phy);
	platform_device_unregister(glue->usb3_phy);
	pci_set_drvdata(pci, NULL);
	pci_disable_device(pci);
}