Skip to content

Commit e992ff4

Browse files
authored
Update osal_rtthread.h
1 parent 7d76c17 commit e992ff4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/osal/osal_rtthread.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_semaphore_wait(osal_semaphore_t se
6363
}
6464

6565
TU_ATTR_ALWAYS_INLINE static inline void osal_semaphore_reset(osal_semaphore_t const sem_hdl) {
66-
rt_ubase_t value = 0;
67-
rt_sem_control(sem_hdl, RT_IPC_CMD_RESET, &value);
66+
rt_sem_control(sem_hdl, RT_IPC_CMD_RESET, 0);
6867
}
6968

7069
//--------------------------------------------------------------------+

0 commit comments

Comments
 (0)