summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-08-19 08:56:20 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-08-19 11:28:53 -0500
commit194f74ebc68f0655d40e9cb4e8a70ef8e8d4d261 (patch)
treef058f235a3dc67badfb305348be3ee39ff8d1661 /drivers/usb
parent365038d83313951d6ace15342eb24624bbef1666 (diff)
downloadop-kernel-dev-194f74ebc68f0655d40e9cb4e8a70ef8e8d4d261.zip
op-kernel-dev-194f74ebc68f0655d40e9cb4e8a70ef8e8d4d261.tar.gz
usb: dwc2: gadget: fix below build warning
linux-2.6/drivers/usb/dwc2/gadget.c: In function 's3c_hsotg_irq_enumdone': linux-2.6/drivers/usb/dwc2/gadget.c:1904: warning: 'ep_mps' may be used uninitialized in this function Acked-by: Paul Zimmerman <Paul.Zimmerman@synopsys.com> Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/dwc2/gadget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index 0ba9c33..2a6f76b 100644
--- a/drivers/usb/dwc2/gadget.c
+++ b/drivers/usb/dwc2/gadget.c
@@ -1901,7 +1901,7 @@ static void s3c_hsotg_epint(struct s3c_hsotg *hsotg, unsigned int idx,
static void s3c_hsotg_irq_enumdone(struct s3c_hsotg *hsotg)
{
u32 dsts = readl(hsotg->regs + DSTS);
- int ep0_mps = 0, ep_mps;
+ int ep0_mps = 0, ep_mps = 1023;
/*
* This should signal the finish of the enumeration phase
OpenPOWER on IntegriCloud