OSDN Git Service

usb: dwc3: ep0: simplify error handling on dwc3_ep0_inspect_setup
authorFelipe Balbi <balbi@ti.com>
Thu, 31 May 2012 07:29:49 +0000 (10:29 +0300)
committerFelipe Balbi <balbi@ti.com>
Sun, 3 Jun 2012 20:08:27 +0000 (23:08 +0300)
commitef21ede65ee3e0dfd8f2cb37de8892816e2f1257
treeeb66039a091b94d660b088fe73813e413f6accfa
parent5cbe8c220c1e126dd0855ad57fe4491b267132b9
usb: dwc3: ep0: simplify error handling on dwc3_ep0_inspect_setup

There's no need for returning early. Instead,
we can call dwc3_ep0_stall_and_restart()
conditionally.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/ep0.c