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
62bb84ed0e4d: "usb: gadget: ci13xxx: convert to
platform device".
Reported-by: Dan Carpenter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
struct resource res[3];
int retval = 0, nres = 2;
- if (id == NULL)
- return -EINVAL;
-
retval = pci_enable_device(pdev);
if (retval)
goto done;