summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-10-13 19:27:54 +0200
committerFelipe Balbi <balbi@ti.com>2011-10-13 19:42:10 +0200
commit431879a762277ddb9df959bba80216f3ef3d8e17 (patch)
tree8412e6ac859aa038484ae59da3ee9d2ffab3e26b /drivers/usb
parentusb: gadget: mv_udc: add clock gating support (diff)
downloadlinux-431879a762277ddb9df959bba80216f3ef3d8e17.tar.xz
linux-431879a762277ddb9df959bba80216f3ef3d8e17.zip
usb: gadget: mv_udc: fix compile warning
| drivers/usb/gadget/mv_udc_core.c: In function 'handle_setup_packet': | drivers/usb/gadget/mv_udc_core.c:1556:6: warning: 'status' may be \ used uninitialized in this function Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/mv_udc_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/mv_udc_core.c b/drivers/usb/gadget/mv_udc_core.c
index 046ab122ee88..fbed5d08beee 100644
--- a/drivers/usb/gadget/mv_udc_core.c
+++ b/drivers/usb/gadget/mv_udc_core.c
@@ -1553,7 +1553,7 @@ static void ch9setaddress(struct mv_udc *udc, struct usb_ctrlrequest *setup)
static void ch9getstatus(struct mv_udc *udc, u8 ep_num,
struct usb_ctrlrequest *setup)
{
- u16 status;
+ u16 status = 0;
int retval;
if ((setup->bRequestType & (USB_DIR_IN | USB_TYPE_MASK))