diff options
author | Felipe Balbi <balbi@ti.com> | 2012-02-17 04:58:14 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-06-06 04:21:23 -0400 |
commit | 6dbc10c61d5841f64945fd94977fa8fa1c0192da (patch) | |
tree | f098e6e8278cbd93ea65731564da9ee632a28339 | |
parent | 70b674bfeb735557fc03cdc125ffe6d34218fcfd (diff) |
usb: dwc3: gadget: drop useless code
We never set CMDIOC bit for Start Transfer
command, so that code will never be used.
Tested-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 854f3a3c8832..056ace8ab97d 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c | |||
@@ -1765,9 +1765,6 @@ static void dwc3_ep_cmd_compl(struct dwc3_ep *dep, | |||
1765 | case DWC3_DEPCMD_ENDTRANSFER: | 1765 | case DWC3_DEPCMD_ENDTRANSFER: |
1766 | dwc3_process_ep_cmd_complete(dep, event); | 1766 | dwc3_process_ep_cmd_complete(dep, event); |
1767 | break; | 1767 | break; |
1768 | case DWC3_DEPCMD_STARTTRANSFER: | ||
1769 | dep->res_trans_idx = param & 0x7f; | ||
1770 | break; | ||
1771 | default: | 1768 | default: |
1772 | printk(KERN_ERR "%s() unknown /unexpected type: %d\n", | 1769 | printk(KERN_ERR "%s() unknown /unexpected type: %d\n", |
1773 | __func__, cmd_type); | 1770 | __func__, cmd_type); |