projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aec033
)
usb: gadget: mv_udc: fix compile warning
author
Felipe Balbi
<balbi@ti.com>
Thu, 13 Oct 2011 17:27:54 +0000
(20:27 +0300)
committer
Felipe Balbi
<balbi@ti.com>
Thu, 13 Oct 2011 17:42:10 +0000
(20:42 +0300)
| 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>
drivers/usb/gadget/mv_udc_core.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/mv_udc_core.c
b/drivers/usb/gadget/mv_udc_core.c
index 046ab122ee8853a0c285a6ac68da681f6b942fc2..fbed5d08beee38435b923cf43d41b8db907b8356 100644
(file)
--- 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))