From 34476b497f25ce5c422fe81f885effd216fde787 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Sat, 4 Nov 2023 10:12:54 +0100 Subject: [PATCH] sched/semaphore/spinlock.c: cosmetics --- sched/semaphore/spinlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sched/semaphore/spinlock.c b/sched/semaphore/spinlock.c index ca75c14b02..ba92917f65 100644 --- a/sched/semaphore/spinlock.c +++ b/sched/semaphore/spinlock.c @@ -179,7 +179,7 @@ bool spin_trylock(FAR volatile spinlock_t *lock) if (!atomic_compare_exchange_strong(&lock->value, &old.value, new.value)) #else /* CONFIG_TICKET_SPINLOCK */ if (up_testset(lock) == SP_LOCKED) -#endif /* CONFIG_TICKET_SPINLOCK */ +#endif /* CONFIG_TICKET_SPINLOCK */ { #ifdef CONFIG_SCHED_INSTRUMENTATION_SPINLOCKS /* Notify that we abort for a spinlock */ @@ -243,7 +243,7 @@ bool spin_trylock_wo_note(FAR volatile spinlock_t *lock) if (!atomic_compare_exchange_strong(&lock->value, &old.value, new.value)) #else /* CONFIG_TICKET_SPINLOCK */ if (up_testset(lock) == SP_LOCKED) -#endif /* CONFIG_TICKET_SPINLOCK */ +#endif /* CONFIG_TICKET_SPINLOCK */ { SP_DSB(); return false;