Skip to content

Commit

Permalink
Remove unused variable 'result'
Browse files Browse the repository at this point in the history
Remove the unused variable 'result' that is causing the GCC build error.

Signed-off-by: SaiSurya Ch <saisurya.chakkaveeravenkatanaga@amd.com>
  • Loading branch information
saisurya-ch committed Aug 6, 2024
1 parent 34e5f7a commit e4e8a79
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/arch/xtensa/include/arch/spinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit e4e8a79

Please sign in to comment.