Skip to content
Commit c0ca324d authored by Felipe Balbi's avatar Felipe Balbi
Browse files

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: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent e4875bd4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment