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:
Benjamin Walsh 2016-09-21 10:37:34 -04:00
commit 70c68b92de

View file

@ -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)