Skip to content
Commit 5792ee6d authored by Andy Ross's avatar Andy Ross Committed by Anas Nashif
Browse files

kernel/mutex: Clean up k_mutex_unlock()



Recent changes to the scheduler API means we can simplify this
further: move the assignment to mutex->owner outside the if(), which
removes the need to have an else clause (which just set that field to
NULL when the new_owner was already NULL); and we can likewise move
the irq_unlock() outside the block.

Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent d89249db
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment