summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Avison <[email protected]>2022-07-15 17:32:20 +0100
committerBen Avison <[email protected]>2022-09-12 18:46:09 +0100
commite5355d0335082541ae47b128add049a9d91ec070 (patch)
treedc6355e71b6779c929c5a8576f0be3ed61223e5c
parentd28ff1175d185c399add10be7824310b2b8dcd47 (diff)
[rp2040] Remove non-portable return statements
IAR generates error Pe118 'a void function may not return a value'.
-rw-r--r--src/portable/raspberrypi/rp2040/rp2040_usb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/portable/raspberrypi/rp2040/rp2040_usb.h b/src/portable/raspberrypi/rp2040/rp2040_usb.h
index c72dae64c..87fa999ca 100644
--- a/src/portable/raspberrypi/rp2040/rp2040_usb.h
+++ b/src/portable/raspberrypi/rp2040/rp2040_usb.h
@@ -87,15 +87,15 @@ TU_ATTR_ALWAYS_INLINE static inline uint32_t _hw_endpoint_buffer_control_get_val
}
TU_ATTR_ALWAYS_INLINE static inline void _hw_endpoint_buffer_control_set_value32(struct hw_endpoint *ep, uint32_t value) {
- return _hw_endpoint_buffer_control_update32(ep, 0, value);
+ _hw_endpoint_buffer_control_update32(ep, 0, value);
}
TU_ATTR_ALWAYS_INLINE static inline void _hw_endpoint_buffer_control_set_mask32(struct hw_endpoint *ep, uint32_t value) {
- return _hw_endpoint_buffer_control_update32(ep, ~value, value);
+ _hw_endpoint_buffer_control_update32(ep, ~value, value);
}
TU_ATTR_ALWAYS_INLINE static inline void _hw_endpoint_buffer_control_clear_mask32(struct hw_endpoint *ep, uint32_t value) {
- return _hw_endpoint_buffer_control_update32(ep, ~value, 0);
+ _hw_endpoint_buffer_control_update32(ep, ~value, 0);
}
static inline uintptr_t hw_data_offset(uint8_t *buf)