unified: change signature of k_sem_reset()
Does not need to return anything, since it simply resets the count. Change-Id: I1185ea1728a9809178afa53b3dba47f7650218e2 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
bee1c0655f
commit
70c68b92de
1 changed files with 1 additions and 3 deletions
|
@ -627,11 +627,9 @@ extern void k_sem_init(struct k_sem *sem, unsigned int initial_count,
|
|||
extern int k_sem_take(struct k_sem *sem, int32_t timeout);
|
||||
extern void k_sem_give(struct k_sem *sem);
|
||||
|
||||
static inline int k_sem_reset(struct k_sem *sem)
|
||||
static inline void k_sem_reset(struct k_sem *sem)
|
||||
{
|
||||
sem->count = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline unsigned int k_sem_count_get(struct k_sem *sem)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue