commit | 5792ee6da28216d7725d63eda3c9e8a98e5b8d6d | [log] [tgz] |
---|---|---|
author | Andy Ross <andrew.j.ross@intel.com> | Thu Apr 05 08:55:47 2018 -0700 |
committer | Anas Nashif <nashif@linux.intel.com> | Tue Apr 24 03:57:20 2018 +0530 |
tree | 8096c9dcaf16e36f0afa50c900b172cb4ff655b6 | |
parent | d89249dbc58c070055e4b21d3ebc6130948d42b9 [diff] |
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: Andy Ross <andrew.j.ross@intel.com>