From e4e8a792650535883f04d9a4e9cfb6a085e71d0a Mon Sep 17 00:00:00 2001 From: SaiSurya Ch Date: Tue, 6 Aug 2024 14:45:13 +0530 Subject: [PATCH] Remove unused variable 'result' Remove the unused variable 'result' that is causing the GCC build error. Signed-off-by: SaiSurya Ch --- src/arch/xtensa/include/arch/spinlock.h | 3 --- 1 file changed, 3 deletions(-) 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 */