Skip to content

Commit 2f2dd94

Browse files
ycsinkartben
authored andcommitted
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>
1 parent c5fc9a2 commit 2f2dd94

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/include/kswap.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ static ALWAYS_INLINE unsigned int do_swap(unsigned int key,
7878
struct k_spinlock *lock,
7979
bool is_spinlock)
8080
{
81-
ARG_UNUSED(lock);
8281
struct k_thread *new_thread, *old_thread;
8382

8483
#ifdef CONFIG_SPIN_VALIDATE

0 commit comments

Comments
 (0)