Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: fabian18 <[email protected]>
  • Loading branch information
maribu and fabian18 authored Oct 12, 2022
1 parent bf678a2 commit 528b477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/mutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ bool mutex_lock_internal(mutex_t *mutex, bool block)
mutex->owner = me->pid;
#endif
#if IS_USED(MODULE_CORE_MUTEX_DEBUG)
mutex->owner_calling_pc = cpu_get_caller_pc();
mutex->owner_calling_pc = cpu_get_caller_pc();
#endif
#if IS_USED(MODULE_CORE_MUTEX_PRIORITY_INHERITANCE)
mutex->owner_original_priority = me->priority;
Expand Down Expand Up @@ -148,7 +148,7 @@ int mutex_lock_cancelable(mutex_cancel_t *mc)
mutex->owner = me->pid;
#endif
#if IS_USED(MODULE_CORE_MUTEX_DEBUG)
mutex->owner_calling_pc = cpu_get_caller_pc();
mutex->owner_calling_pc = cpu_get_caller_pc();
#endif
#if IS_USED(MODULE_CORE_MUTEX_PRIORITY_INHERITANCE)
mutex->owner_original_priority = me->priority;
Expand Down

0 comments on commit 528b477

Please sign in to comment.