diff options
author | Felipe Balbi | 2011-10-13 20:27:54 +0300 |
---|---|---|
committer | Felipe Balbi | 2011-10-13 20:42:10 +0300 |
commit | 431879a762277ddb9df959bba80216f3ef3d8e17 (patch) | |
tree | 8412e6ac859aa038484ae59da3ee9d2ffab3e26b /drivers/usb/gadget | |
parent | 1aec033b955ba358dbf365aa7d0bbd49079c8559 (diff) |
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/gadget')
-rw-r--r-- | drivers/usb/gadget/mv_udc_core.c | 2 |
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)) |