Skip to content

Commit

Permalink
kernel/swap: remove redundant ARG_UNUSED from do_swap()
Browse files Browse the repository at this point in the history
The `lock` arg is used multiple times in the function, making the
`ARG_UNUSED(lock);` redundant, remove it.

Signed-off-by: Yong Cong Sin <[email protected]>
Signed-off-by: Yong Cong Sin <[email protected]>
  • Loading branch information
ycsin authored and kartben committed Dec 24, 2024
1 parent c5fc9a2 commit 2f2dd94
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kernel/include/kswap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f2dd94

Please sign in to comment.