summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index eb040a6..ec47e06 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -124,18 +124,6 @@ static void usb_slave_mode(bool on)
rc = disk_mount_all();
if (rc <= 0) /* no partition */
panicf("mount: %d",rc);
-
-#ifndef BOOTLOADER
-#if CONFIG_CPU == IMX31L || CONFIG_USBOTG == USBOTG_ISP1583 || \
- defined(CPU_TCC77X) || defined(CPU_TCC780X)
- /* These use a static transfer buffer */
-#elif defined(USB_STORAGE) && !defined (HAVE_HARDWARE_BEEP)
- /* Storage can use the audio buffer, restore it if it did to get
- * keyclicks back. */
- if (audio_buffer_state() == BUFFER_STATE_TRASHED)
- audio_buffer_reset();
-#endif /* USB_STORAGE */
-#endif /* BOOTLOADER */
}
}
#endif