Skip to content

Commit e5355d0

Browse files
author
Ben Avison
committed
[rp2040] Remove non-portable return statements
IAR generates error Pe118 'a void function may not return a value'.
1 parent d28ff11 commit e5355d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/portable/raspberrypi/rp2040/rp2040_usb.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ TU_ATTR_ALWAYS_INLINE static inline uint32_t _hw_endpoint_buffer_control_get_val
8787
}
8888

8989
TU_ATTR_ALWAYS_INLINE static inline void _hw_endpoint_buffer_control_set_value32(struct hw_endpoint *ep, uint32_t value) {
90-
return _hw_endpoint_buffer_control_update32(ep, 0, value);
90+
_hw_endpoint_buffer_control_update32(ep, 0, value);
9191
}
9292

9393
TU_ATTR_ALWAYS_INLINE static inline void _hw_endpoint_buffer_control_set_mask32(struct hw_endpoint *ep, uint32_t value) {
94-
return _hw_endpoint_buffer_control_update32(ep, ~value, value);
94+
_hw_endpoint_buffer_control_update32(ep, ~value, value);
9595
}
9696

9797
TU_ATTR_ALWAYS_INLINE static inline void _hw_endpoint_buffer_control_clear_mask32(struct hw_endpoint *ep, uint32_t value) {
98-
return _hw_endpoint_buffer_control_update32(ep, ~value, 0);
98+
_hw_endpoint_buffer_control_update32(ep, ~value, 0);
9999
}
100100

101101
static inline uintptr_t hw_data_offset(uint8_t *buf)

0 commit comments

Comments
 (0)