diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-01-18 14:10:06 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-01-18 14:10:06 +0000 |
commit | 453550a6877afcda342ac2477cf05028fff053f9 (patch) | |
tree | 0c1da0af945d93a6c4af2da5eb359f737e6a7f53 /firmware/target/arm/ata-sd-pp.c | |
parent | 980225c3e20b3102382c910da6e1406cc8c7f1b5 (diff) | |
download | rockbox-453550a6877afcda342ac2477cf05028fff053f9.tar.gz rockbox-453550a6877afcda342ac2477cf05028fff053f9.zip |
Try to get some control over #ifdef hell in usb.c by refactoring and inline function use. SYS_USB_DISCONNECTED_ACK hasn't been doing anything useful for the USB thread; remove it. USB thread simply ignores that value. Observe only valid usb_state transitions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29084 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/ata-sd-pp.c')
-rw-r--r-- | firmware/target/arm/ata-sd-pp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/firmware/target/arm/ata-sd-pp.c b/firmware/target/arm/ata-sd-pp.c index 00437ea7a7..b200dc4c22 100644 --- a/firmware/target/arm/ata-sd-pp.c +++ b/firmware/target/arm/ata-sd-pp.c | |||
@@ -1175,10 +1175,6 @@ static void sd_thread(void) | |||
1175 | usb_acknowledge(SYS_USB_CONNECTED_ACK); | 1175 | usb_acknowledge(SYS_USB_CONNECTED_ACK); |
1176 | /* Wait until the USB cable is extracted again */ | 1176 | /* Wait until the USB cable is extracted again */ |
1177 | usb_wait_for_disconnect(&sd_queue); | 1177 | usb_wait_for_disconnect(&sd_queue); |
1178 | |||
1179 | break; | ||
1180 | case SYS_USB_DISCONNECTED: | ||
1181 | usb_acknowledge(SYS_USB_DISCONNECTED_ACK); | ||
1182 | break; | 1178 | break; |
1183 | 1179 | ||
1184 | #ifdef SD_DRIVER_CLOSE | 1180 | #ifdef SD_DRIVER_CLOSE |