In function 'dwc3_stop_active_transfer':
error: 'cmd' undeclared

Signed-off-by: Li Wang <[email protected]>
---
 drivers/usb/dwc3/gadget.c | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index bd1c944f903b..be6e3bc65689 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -3386,27 +3386,6 @@ void dwc3_stop_active_transfer(struct dwc3_ep *dep, bool 
force,
         * remove requests attempts to unmap USB request buffers.
         */
 
-       cmd = DWC3_DEPCMD_ENDTRANSFER;
-       cmd |= force ? DWC3_DEPCMD_HIPRI_FORCERM : 0;
-       cmd |= interrupt ? DWC3_DEPCMD_CMDIOC : 0;
-       cmd |= DWC3_DEPCMD_PARAM(dep->resource_index);
-       memset(&params, 0, sizeof(params));
-       ret = dwc3_send_gadget_ep_cmd(dep, cmd, &params);
-       WARN_ON_ONCE(ret);
-       dep->resource_index = 0;
-
-       if (!interrupt)
-               dep->flags &= ~DWC3_EP_TRANSFER_STARTED;
-       else
-               dep->flags |= DWC3_EP_END_TRANSFER_PENDING;
- 
-       /*
-        * when transfer is stopped with force rm bit false, it can be
-        * restarted by passing resource_index in params; don't loose it
-        */
-       if (force)
-               dep->resource_index = 0;
-
        __dwc3_stop_active_transfer(dep, force, interrupt);
 }
 
-- 
2.39.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12404): 
https://lists.yoctoproject.org/g/linux-yocto/message/12404
Mute This Topic: https://lists.yoctoproject.org/mt/98379697/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to