From 0a73158341d5d3ef1e79e0d77a177121ef502930 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 24 Mar 2023 09:27:48 +0100 Subject: usb: gadget: fastboot: Do not dequeue idle request In fastboot_disable() all endpoints are disabled which will complete all outstanding requests with -ESHUTDOWN. fastboot_unbind() is called after that, so we do not need to deqeueue any requests there. Reviewed-by: Marco Felsch Link: https://lore.barebox.org/20230324082748.987672-1-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer --- drivers/usb/gadget/function/f_fastboot.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/gadget/function/f_fastboot.c b/drivers/usb/gadget/function/f_fastboot.c index 4266b78b40..41450268fc 100644 --- a/drivers/usb/gadget/function/f_fastboot.c +++ b/drivers/usb/gadget/function/f_fastboot.c @@ -319,7 +319,6 @@ static void fastboot_unbind(struct usb_configuration *c, struct usb_function *f) { struct f_fastboot *f_fb = func_to_fastboot(f); - usb_ep_dequeue(f_fb->out_ep, f_fb->out_req); free(f_fb->out_req->buf); usb_ep_free_request(f_fb->out_ep, f_fb->out_req); f_fb->out_req = NULL; -- cgit v1.2.1