Skip to contentSkip to conversation

drivers/usb/gadget/r8a66597-udc.h:139: warning: ‘data’ may be used uninitialized in this function

DISCUSSION Daniel Mack 1 participant 1 message May 19, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

I stumbled over the r8a66597 UDC gadget driver as the the compiler complained about the static inline function r8a66597_read():

drivers/usb/gadget/r8a66597-udc.c: In function ‘irq_packet_read’:
drivers/usb/gadget/r8a66597-udc.h:139: warning: ‘data’ may be used uninitialized in this function drivers/usb/gadget/r8a66597-udc.h:139: note: ‘data’ was declared here

I know nothing about the code, but this function indeed looks bogus. Can anyone have a look at this? Also, I wonder whether this function is actually too big for a static inline.

Thanks,
Daniel