mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]>
This commit is contained in:
parent
1aec033b95
commit
431879a762
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue