summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/dwc3-pci.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2014-05-15 15:53:32 +0300
committerFelipe Balbi <balbi@ti.com>2014-05-15 10:26:21 -0500
commitb09e99ee7c2b7ee80cca128b93b07fb830e6ecad (patch)
treec3ef26babf9053b0d4c41a620c4def8389e88e5c /drivers/usb/dwc3/dwc3-pci.c
parent7419485f197c436d41535df78ddea1085042d271 (diff)
downloadop-kernel-dev-b09e99ee7c2b7ee80cca128b93b07fb830e6ecad.zip
op-kernel-dev-b09e99ee7c2b7ee80cca128b93b07fb830e6ecad.tar.gz
usb: dwc3: no need to initialize ret variable
First usage of ret variable will re-write initial value. Thus, there is no need to initialize it. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/dwc3-pci.c')
-rw-r--r--drivers/usb/dwc3/dwc3-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c
index 1ed95e0..e76d1ca 100644
--- a/drivers/usb/dwc3/dwc3-pci.c
+++ b/drivers/usb/dwc3/dwc3-pci.c
@@ -99,7 +99,7 @@ static int dwc3_pci_probe(struct pci_dev *pci,
struct resource res[2];
struct platform_device *dwc3;
struct dwc3_pci *glue;
- int ret = -ENOMEM;
+ int ret;
struct device *dev = &pci->dev;
glue = devm_kzalloc(dev, sizeof(*glue), GFP_KERNEL);
OpenPOWER on IntegriCloud