kernel: Fix for k_sem where counter is a unsigned int

So let the helper return the right type.

Change-Id: I850937a70fe042e42c06cb53ad736c8904221f1b
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2016-09-21 16:03:21 +02:00 committed by Benjamin Walsh
commit 276086da28

View file

@ -639,7 +639,7 @@ static inline int k_sem_reset(struct k_sem *sem)
return 0;
}
static inline int k_sem_count_get(struct k_sem *sem)
static inline unsigned int k_sem_count_get(struct k_sem *sem)
{
return sem->count;
}