]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: remove duplicated code from __dwc3_gadget_ep_set_halt
authorFelipe Balbi <balbi@ti.com>
Mon, 25 Jun 2012 14:09:28 +0000 (17:09 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 25 Jun 2012 14:09:28 +0000 (17:09 +0300)
commit298c6f2b8dad07b50d83d0656a1cfe9d141a5bd5
tree4ca1cce6721e6e61247433aa02a7d5f3d905f421
parentb58ed9a2325acddf127a1880cac2b78f422ef820
usb: dwc3: gadget: remove duplicated code from __dwc3_gadget_ep_set_halt

whenever we want to stall ep0, we always call
dwc3_ep0_stall_and_restart() which makes sure
to send ep0state properly rendering the code
in __dwc3_gadget_ep_set_halt() duplicated.

Reported-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c