diff options
| author | hathach <[email protected]> | 2025-12-12 00:27:20 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-12-12 00:27:20 +0700 |
| commit | 711879b2f1bcb122c084e6a8bc93c5d2c599ab84 (patch) | |
| tree | 15389fe812ec3964ab4957f37a25706dd9e9ff3b /src/common/tusb_fifo.c | |
| parent | c7f7dc6ee1f4f56ccb86adabb2ca3f14c212e985 (diff) | |
remove bitfield in usbd_device_t state to reduce code size
Diffstat (limited to 'src/common/tusb_fifo.c')
| -rw-r--r-- | src/common/tusb_fifo.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/tusb_fifo.c b/src/common/tusb_fifo.c index 1fca1fd32..ef787c6e6 100644 --- a/src/common/tusb_fifo.c +++ b/src/common/tusb_fifo.c @@ -96,9 +96,9 @@ void tu_fifo_clear(tu_fifo_t *f) { } // Change the fifo overwritable mode -bool tu_fifo_set_overwritable(tu_fifo_t *f, bool overwritable) { +void tu_fifo_set_overwritable(tu_fifo_t *f, bool overwritable) { if (f->overwritable == overwritable) { - return true; + return; } ff_lock(f->mutex_wr); @@ -108,8 +108,6 @@ bool tu_fifo_set_overwritable(tu_fifo_t *f, bool overwritable) { ff_unlock(f->mutex_wr); ff_unlock(f->mutex_rd); - - return true; } //--------------------------------------------------------------------+ |
