kernel/swap: remove redundant ARG_UNUSED from do_swap()

The `lock` arg is used multiple times in the function, making the
`ARG_UNUSED(lock);` redundant, remove it.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
Yong Cong Sin 2024-12-24 13:19:28 +08:00 committed by Benjamin Cabé
parent c5fc9a2b17
commit 2f2dd9407c

View file

@ -78,7 +78,6 @@ static ALWAYS_INLINE unsigned int do_swap(unsigned int key,
struct k_spinlock *lock, struct k_spinlock *lock,
bool is_spinlock) bool is_spinlock)
{ {
ARG_UNUSED(lock);
struct k_thread *new_thread, *old_thread; struct k_thread *new_thread, *old_thread;
#ifdef CONFIG_SPIN_VALIDATE #ifdef CONFIG_SPIN_VALIDATE