diff options
author | Felipe Balbi <balbi@ti.com> | 2012-03-12 10:41:19 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-13 17:24:08 -0400 |
commit | 28f1a0d946774edc77c33ab62a564aa34828472d (patch) | |
tree | e5086347b4e4966413d53310188f0034cddd7235 | |
parent | 8816230e13d0c3c6ba51916d20e6d204646abf03 (diff) |
usb: dwc3: pci: fix another failure path in dwc3_pci_probe()
When applying commit 7d26b58 (fix failure path in
dwc3_pci_probe()), I mistakenly left out one of the
possible failures where we would return success even
on the error case.
This patch fixes that mistake.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/dwc3/dwc3-pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c index dcc64791b4e1..20d0c8adfe40 100644 --- a/drivers/usb/dwc3/dwc3-pci.c +++ b/drivers/usb/dwc3/dwc3-pci.c | |||
@@ -89,6 +89,7 @@ static int __devinit dwc3_pci_probe(struct pci_dev *pci, | |||
89 | dwc3 = platform_device_alloc("dwc3", devid); | 89 | dwc3 = platform_device_alloc("dwc3", devid); |
90 | if (!dwc3) { | 90 | if (!dwc3) { |
91 | dev_err(dev, "couldn't allocate dwc3 device\n"); | 91 | dev_err(dev, "couldn't allocate dwc3 device\n"); |
92 | ret = -ENOMEM; | ||
92 | goto err1; | 93 | goto err1; |
93 | } | 94 | } |
94 | 95 | ||