From a62b484a8131c0810a26bc578ca39c6ef0f4d7e7 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 11 Jun 2023 14:10:47 +0200 Subject: [PATCH] Fixed a warning in usb.c. --- src/usb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/usb.c b/src/usb.c index 9993193ce..5f2b95084 100644 --- a/src/usb.c +++ b/src/usb.c @@ -342,6 +342,8 @@ ohci_set_interrupt(usb_t *dev, uint8_t bit) ohci_update_irq(dev); } +/* TODO: Actually use this function somewhere. */ +#if 0 /* Next two functions ported over from QEMU. */ static int ohci_copy_td_input(usb_t* dev, usb_td_t *td, uint8_t *buf, int len) @@ -363,6 +365,7 @@ static int ohci_copy_td_input(usb_t* dev, usb_td_t *td, dma_bm_write(ptr, buf, len - n, 1); return 0; } +#endif static int ohci_copy_td_output(usb_t* dev, usb_td_t *td, uint8_t *buf, int len)