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

Signed-off-by: Li Wang <li.w...@windriver.com>
---
 drivers/usb/dwc3/gadget.c | 26 --------------------------
 1 file changed, 26 deletions(-)

diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index c44b7c199905..8460bb22badd 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -3426,32 +3426,6 @@ void dwc3_stop_active_transfer(struct dwc3_ep *dep, bool 
force, bool interrupt)
         * 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);
-
-       /*
-        * 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;
-
-       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.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12403): 
https://lists.yoctoproject.org/g/linux-yocto/message/12403
Mute This Topic: https://lists.yoctoproject.org/mt/98379670/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to