summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-03-27 19:41:37 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-03-27 19:41:37 +0000
commitc689496e0458596f180ebfb75f05d42213b94510 (patch)
treeef7264335570b2d867c5ba678d56fbee0bf60eb2 /firmware
parentb917337be9b1f309db06cdf3c2379ccdcbb583ab (diff)
downloadrockbox-c689496e0458596f180ebfb75f05d42213b94510.tar.gz
rockbox-c689496e0458596f180ebfb75f05d42213b94510.tar.bz2
rockbox-c689496e0458596f180ebfb75f05d42213b94510.zip
Remove unnecessary (and incorrect) acks after stalling the control endpoint
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25359 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/usbstack/usb_core.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c
index a5865da9f9..b7334879f4 100644
--- a/firmware/usbstack/usb_core.c
+++ b/firmware/usbstack/usb_core.c
@@ -507,14 +507,6 @@ static void allocate_interfaces_and_endpoints(void)
usb_core_num_interfaces = interface;
}
-static int usb_core_ack_control(struct usb_ctrlrequest* req)
-{
- if (req->bRequestType & USB_DIR_IN)
- return usb_drv_recv(EP_CONTROL,NULL,0);
- else
- return usb_drv_send(EP_CONTROL,NULL,0);
-}
-
static void control_request_handler_drivers(struct usb_ctrlrequest* req)
{
@@ -536,7 +528,6 @@ static void control_request_handler_drivers(struct usb_ctrlrequest* req)
/* nope. flag error */
logf("bad req:desc %d:%d", req->bRequest, req->wValue>>8);
usb_drv_stall(EP_CONTROL, true, true);
- usb_core_ack_control(req);
}
}
@@ -744,7 +735,6 @@ static void request_handler_endoint_drivers(struct usb_ctrlrequest* req)
/* nope. flag error */
logf("usb bad req %d",req->bRequest);
usb_drv_stall(EP_CONTROL,true,true);
- usb_core_ack_control(req);
}
}