kernel: Cleanup. Remove redundant test when calling _Swap()

_Swap() must already handle the case where _get_next_ready_thread() is
the same as _current.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
Andy Ross 2018-07-05 12:50:41 -07:00 committed by Anas Nashif
commit dc0713a706

View file

@ -498,15 +498,8 @@ void _reschedule(u32_t key)
goto noswap;
}
#ifdef CONFIG_SMP
(void)_Swap(key);
return;
#else
if (_get_next_ready_thread() != _current) {
(void)_Swap(key);
return;
}
#endif
noswap:
irq_unlock(key);