summaryrefslogtreecommitdiff
path: root/src/common/tusb_private.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-11-05 19:56:54 +0700
committerhathach <[email protected]>2025-11-06 21:30:52 +0700
commit86a4990b96eafb5904f946fa061b310f155a7d51 (patch)
treec33703a9713b178d30837c388d3fe092184d8b91 /src/common/tusb_private.h
parent6641550f58cd2f983ebb42a28dd881a72d72bc6f (diff)
fix more alerts
Diffstat (limited to 'src/common/tusb_private.h')
-rw-r--r--src/common/tusb_private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/tusb_private.h b/src/common/tusb_private.h
index 37d5e89f1..5e1d59233 100644
--- a/src/common/tusb_private.h
+++ b/src/common/tusb_private.h
@@ -141,7 +141,7 @@ uint32_t tu_edpt_stream_read_xfer(uint8_t hwid, tu_edpt_stream_t* s);
// Complete read transfer by writing EP -> FIFO. Must be called in the transfer complete callback
TU_ATTR_ALWAYS_INLINE static inline
void tu_edpt_stream_read_xfer_complete(tu_edpt_stream_t* s, uint32_t xferred_bytes) {
- if (0 != tu_fifo_depth(&s->ff)) {
+ if (0u != tu_fifo_depth(&s->ff)) {
tu_fifo_write_n(&s->ff, s->ep_buf, (uint16_t) xferred_bytes);
}
}
@@ -149,7 +149,7 @@ void tu_edpt_stream_read_xfer_complete(tu_edpt_stream_t* s, uint32_t xferred_byt
// Complete read transfer with provided buffer
TU_ATTR_ALWAYS_INLINE static inline
void tu_edpt_stream_read_xfer_complete_with_buf(tu_edpt_stream_t* s, const void * buf, uint32_t xferred_bytes) {
- if (0 != tu_fifo_depth(&s->ff)) {
+ if (0u != tu_fifo_depth(&s->ff)) {
tu_fifo_write_n(&s->ff, buf, (uint16_t) xferred_bytes);
}
}