提交 6dbc10c6 编写于 作者: F Felipe Balbi

usb: dwc3: gadget: drop useless code

We never set CMDIOC bit for Start Transfer
command, so that code will never be used.
Tested-by: NPratyush Anand <pratyush.anand@st.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 70b674bf
...@@ -1765,9 +1765,6 @@ static void dwc3_ep_cmd_compl(struct dwc3_ep *dep, ...@@ -1765,9 +1765,6 @@ static void dwc3_ep_cmd_compl(struct dwc3_ep *dep,
case DWC3_DEPCMD_ENDTRANSFER: case DWC3_DEPCMD_ENDTRANSFER:
dwc3_process_ep_cmd_complete(dep, event); dwc3_process_ep_cmd_complete(dep, event);
break; break;
case DWC3_DEPCMD_STARTTRANSFER:
dep->res_trans_idx = param & 0x7f;
break;
default: default:
printk(KERN_ERR "%s() unknown /unexpected type: %d\n", printk(KERN_ERR "%s() unknown /unexpected type: %d\n",
__func__, cmd_type); __func__, cmd_type);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册