summaryrefslogtreecommitdiff
path: root/src/common/tusb_fifo.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-12-10 14:45:06 +0700
committerhathach <[email protected]>2025-12-10 14:45:06 +0700
commitf1fc4c9c796e25111ad8249a4dab9245f5091c25 (patch)
tree81930d68082612c85bb03f5e3b9829eb6ef6f294 /src/common/tusb_fifo.c
parent0e48fe862292bb7b3e526a4b42bfa588d97d105e (diff)
change tu_fifo_clear()/tu_edpt_stream_clear() from return bool to void
Diffstat (limited to 'src/common/tusb_fifo.c')
-rw-r--r--src/common/tusb_fifo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/tusb_fifo.c b/src/common/tusb_fifo.c
index 06b0d6a58..1313fc328 100644
--- a/src/common/tusb_fifo.c
+++ b/src/common/tusb_fifo.c
@@ -84,7 +84,7 @@ bool tu_fifo_config(tu_fifo_t *f, void *buffer, uint16_t depth, uint16_t item_si
}
// clear fifo by resetting read and write indices
-bool tu_fifo_clear(tu_fifo_t *f) {
+void tu_fifo_clear(tu_fifo_t *f) {
ff_lock(f->mutex_wr);
ff_lock(f->mutex_rd);
@@ -93,7 +93,6 @@ bool tu_fifo_clear(tu_fifo_t *f) {
ff_unlock(f->mutex_wr);
ff_unlock(f->mutex_rd);
- return true;
}
// Change the fifo overwritable mode