diff --git a/kernel/mutex.c b/kernel/mutex.c index d2a317f9fae..c3c63c4f036 100644 --- a/kernel/mutex.c +++ b/kernel/mutex.c @@ -264,10 +264,10 @@ int z_impl_k_mutex_unlock(struct k_mutex *mutex) k_mutex_unlock_return: - k_sched_unlock(); - SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_mutex, unlock, mutex, 0); + k_sched_unlock(); + return 0; }