From: Sebastian Andrzej Siewior Date: Thu, 3 Nov 2011 09:32:20 +0000 (+0100) Subject: usb: dwc3: gadget: return early in dwc3_cleanup_done_reqs() X-Git-Tag: v3.3-rc1~153^2~30^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d39ee7be2aaf0a53d7b5f43c13571bac95f7cc0c;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed