UPSTREAM: 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)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commit1f179866afe8a74a3023e8673054685265fb1eba
tree63c8f7f59ca1e2db11488ed23e8807367f025b58
parent343a1aeeb9ff0efb318329c9db5137dca232a4fa
UPSTREAM: 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.

Change-Id: I7faecdab1a78c973e59570fc6a32462ac4ddf6fb
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit c0ca324d09a041ab56be1aaeb5a7cc64c47f877b)
drivers/usb/dwc3/gadget.c