diff --git a/src/arch/xtensa/include/arch/spinlock.h b/src/arch/xtensa/include/arch/spinlock.h index 0a0898a13563..ee6cfc4670a1 100644 --- a/src/arch/xtensa/include/arch/spinlock.h +++ b/src/arch/xtensa/include/arch/spinlock.h @@ -118,10 +118,7 @@ static inline void arch_spin_unlock(struct k_spinlock *lock) */ static inline void arch_spin_unlock(struct k_spinlock *lock) { - uint32_t result; - lock->lock = 0; - result = 1; } #endif /* XCHAL_HAVE_EXCLUSIVE || XCHAL_HAVE_S32C1I */