summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/ci13xxx_pci.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-10 11:41:49 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-10 11:41:49 -0700
commit56d95f3174450d22a3b8d936bea2cb414262ce8f (patch)
treec17942cfdf5adb196e9e080564a7e238ac5de226 /drivers/usb/gadget/ci13xxx_pci.c
parentf639554b8a3a4aac18193a0c98a4639d432c48f0 (diff)
downloadop-kernel-dev-56d95f3174450d22a3b8d936bea2cb414262ce8f.zip
op-kernel-dev-56d95f3174450d22a3b8d936bea2cb414262ce8f.tar.gz
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 62bb84ed0e4d: "usb: gadget: ci13xxx: convert to platform device". Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/ci13xxx_pci.c')
-rw-r--r--drivers/usb/gadget/ci13xxx_pci.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/gadget/ci13xxx_pci.c b/drivers/usb/gadget/ci13xxx_pci.c
index ea03fab..c768441 100644
--- a/drivers/usb/gadget/ci13xxx_pci.c
+++ b/drivers/usb/gadget/ci13xxx_pci.c
@@ -51,9 +51,6 @@ static int __devinit ci13xxx_pci_probe(struct pci_dev *pdev,
struct resource res[3];
int retval = 0, nres = 2;
- if (id == NULL)
- return -EINVAL;
-
retval = pci_enable_device(pdev);
if (retval)
goto done;
OpenPOWER on IntegriCloud