Skip to content

Commit

Permalink
usb: gadget: mv_udc: fix compile warning
Browse files Browse the repository at this point in the history
| 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>
  • Loading branch information
Felipe Balbi committed Oct 13, 2011
1 parent 1aec033 commit 431879a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/mv_udc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 431879a

Please sign in to comment.