Skip to content
Commit 1e47b6a2 authored by Ryan McClelland's avatar Ryan McClelland Committed by Benjamin Cabé
Browse files

kernel: fix K_SEM_DEFINE type-limits warning



A warning could be generated when compiling with -Wtype-limits. This
works around the warning which could happen if initial_count is 0 and
count_limit is K_SEM_MAX_LIMIT.

Signed-off-by: default avatarRyan McClelland <ryanmcclelland@meta.com>
parent 4e7feddd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment