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

Commit 872f8b42 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

USB: goku_udc: remove potential null dereference



"dev" is always null here.  In the end it's only used to get the
pci_name() of "pdev" which is redundant information and so I
removed it.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 33c38752
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1768,7 +1768,7 @@ static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id)
	 * usb_gadget_driver_{register,unregister}() must change.
	 * usb_gadget_driver_{register,unregister}() must change.
	 */
	 */
	if (the_controller) {
	if (the_controller) {
		WARNING(dev, "ignoring %s\n", pci_name(pdev));
		pr_warning("ignoring %s\n", pci_name(pdev));
		return -EBUSY;
		return -EBUSY;
	}
	}
	if (!pdev->irq) {
	if (!pdev->irq) {