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

Commit 56d95f31 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

USB: gadget: ci13xx_pci: remove unneeded check in ci13xxx_pci_probe()



As pointed out by Dan Carpenter, the check for NULL for the id variable
is no longer needed, especially as we just dereferenced it a few lines
earlier, causing an oops if it really was NULL.

This was caused by 62bb84ed: "usb: gadget: ci13xxx: convert to
platform device".

Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f639554b
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -51,9 +51,6 @@ static int __devinit ci13xxx_pci_probe(struct pci_dev *pdev,
	struct resource res[3];
	struct resource res[3];
	int retval = 0, nres = 2;
	int retval = 0, nres = 2;


	if (id == NULL)
		return -EINVAL;

	retval = pci_enable_device(pdev);
	retval = pci_enable_device(pdev);
	if (retval)
	if (retval)
		goto done;
		goto done;