usb: dwc3: gadget: combine return points into a single one
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 4 Apr 2016 06:11:51 +0000 (09:11 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 18 Apr 2016 12:23:39 +0000 (15:23 +0300)
commitc0ca324d09a041ab56be1aaeb5a7cc64c47f877b
treec39c2499819931c5c85fafcd96f561f0f1cad641
parente4875bd4829c1a945bc4714ca806a823a169f3a1
usb: dwc3: gadget: combine return points into a single one

dwc3_send_gadget_ep_cmd() had three return
points. That becomes a pain to track when we need to
debug something or if we need to add more code
before returning.

Let's combine all three return points into a single
one just by introducing a local 'ret' variable.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c