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:
parent
dbb9094b8a
commit
276086da28
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue