usb: dwc3: remove WARN_ON from dwc_stop_active_transfer
authorPratyush Anand <pratyush.anand@st.com>
Fri, 22 Jun 2012 20:53:08 +0000 (02:23 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 25 Jun 2012 10:59:26 +0000 (13:59 +0300)
Now we are sure that, if res_trans_idx is zero, then endpoint has been
stopped. So it's safe to just return if endpoint is already stopped. No
need to generate warning anymore.

While doing so, it's better to return when res_trans_idx is zero and
decrease one level of indentation.

Signed-off-by: Pratyush Anand <pratyush.anand@st.com>
[ balbi@ti.com: slightly changed commit log ]

Signed-off-by: Felipe Balbi <balbi@ti.com>

No differences found