linux/drivers/usb/dwc3
Sebastian Andrzej Siewior d39ee7be2a usb: dwc3: gadget: return early in dwc3_cleanup_done_reqs()
This patch avoids the compiler spitting out the following warning:
|drivers/usb/dwc3/gadget.c:1304: warning: 'trb' is used uninitialized \
	in this function

This is only uninitialized if the list of to-cleanup TRBs is empty which
should not be the case because we call this functions once a transfer
completed so it should be on list.

In order to make the warning disappear we return early. This should
never happen and the WARN_ON_ONCE(1) is there in case it happens
so we can investigate what went wrong.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2011-12-12 11:48:32 +02:00
..
core.c usb: dwc3: move generic dwc3 code from gadget into core 2011-12-12 11:48:27 +02:00
core.h usb: dwc3: ep0: handle delayed_status again 2011-12-12 11:48:31 +02:00
debug.h usb: dwc: remove "All rights reserved" statement. 2011-10-04 10:25:52 -07:00
debugfs.c usb: dwc3: fix sparse errors 2011-12-12 11:48:29 +02:00
dwc3-omap.c usb: dwc3: omap: add multiple instances support to OMAP 2011-12-12 11:48:23 +02:00
dwc3-pci.c usb: dwc3: move dwc3 device ID bitmap to core.c 2011-12-12 11:48:21 +02:00
ep0.c usb: dwc3: ep0: handle delayed_status again 2011-12-12 11:48:31 +02:00
gadget.c usb: dwc3: gadget: return early in dwc3_cleanup_done_reqs() 2011-12-12 11:48:32 +02:00
gadget.h usb: dwc3: fix few coding style problems 2011-12-12 11:48:29 +02:00
host.c usb: dwc3: host: remove unused includes 2011-12-12 11:48:19 +02:00
io.h usb: dwc3: fix few coding style problems 2011-12-12 11:48:29 +02:00
Kconfig usb: dwc3: depend on both Host and Gadget stacks 2011-12-12 11:48:14 +02:00
Makefile usb: dwc3: always compile gadget side too 2011-12-12 11:48:13 +02:00