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:
parent
c5fc9a2b17
commit
2f2dd9407c
1 changed files with 0 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue