From 2f2dd9407c8cbec99e47d1fbc950a93006bae625 Mon Sep 17 00:00:00 2001 From: Yong Cong Sin Date: Tue, 24 Dec 2024 13:19:28 +0800 Subject: [PATCH] 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 Signed-off-by: Yong Cong Sin --- kernel/include/kswap.h | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/include/kswap.h b/kernel/include/kswap.h index 66d7b431d38..ea3c4ef7923 100644 --- a/kernel/include/kswap.h +++ b/kernel/include/kswap.h @@ -78,7 +78,6 @@ static ALWAYS_INLINE unsigned int do_swap(unsigned int key, struct k_spinlock *lock, bool is_spinlock) { - ARG_UNUSED(lock); struct k_thread *new_thread, *old_thread; #ifdef CONFIG_SPIN_VALIDATE