diff options
author | Felipe Balbi <balbi@ti.com> | 2011-10-13 13:27:54 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-10-13 13:42:10 -0400 |
commit | 431879a762277ddb9df959bba80216f3ef3d8e17 (patch) | |
tree | 8412e6ac859aa038484ae59da3ee9d2ffab3e26b /drivers/usb | |
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')
-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) | |||
1553 | static void ch9getstatus(struct mv_udc *udc, u8 ep_num, | 1553 | static void ch9getstatus(struct mv_udc *udc, u8 ep_num, |
1554 | struct usb_ctrlrequest *setup) | 1554 | struct usb_ctrlrequest *setup) |
1555 | { | 1555 | { |
1556 | u16 status; | 1556 | u16 status = 0; |
1557 | int retval; | 1557 | int retval; |
1558 | 1558 | ||
1559 | if ((setup->bRequestType & (USB_DIR_IN | USB_TYPE_MASK)) | 1559 | if ((setup->bRequestType & (USB_DIR_IN | USB_TYPE_MASK)) |