summaryrefslogtreecommitdiff
path: root/src/class/cdc/cdc_host.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/class/cdc/cdc_host.c
parent0e48fe862292bb7b3e526a4b42bfa588d97d105e (diff)
change tu_fifo_clear()/tu_edpt_stream_clear() from return bool to void
Diffstat (limited to 'src/class/cdc/cdc_host.c')
-rw-r--r--src/class/cdc/cdc_host.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c
index 35717ddf6..e069d9f71 100644
--- a/src/class/cdc/cdc_host.c
+++ b/src/class/cdc/cdc_host.c
@@ -482,7 +482,8 @@ uint32_t tuh_cdc_write_flush(uint8_t idx) {
bool tuh_cdc_write_clear(uint8_t idx) {
cdch_interface_t * p_cdc = get_itf(idx);
TU_VERIFY(p_cdc);
- return tu_edpt_stream_clear(&p_cdc->stream.tx);
+ tu_edpt_stream_clear(&p_cdc->stream.tx);
+ return true;
}
uint32_t tuh_cdc_write_available(uint8_t idx) {
@@ -517,9 +518,9 @@ bool tuh_cdc_read_clear (uint8_t idx) {
cdch_interface_t * p_cdc = get_itf(idx);
TU_VERIFY(p_cdc);
- bool ret = tu_edpt_stream_clear(&p_cdc->stream.rx);
+ tu_edpt_stream_clear(&p_cdc->stream.rx);
(void)tu_edpt_stream_read_xfer(p_cdc->daddr, &p_cdc->stream.rx);
- return ret;
+ return true;
}
//--------------------------------------------------------------------+