kernel: sched: Fix compiler warning

Ignore return value of _Swap() as it is not
used anywhere.

Signed-off-by: Spoorthi K <spoorthi.k@intel.com>
This commit is contained in:
Spoorthi K 2018-10-24 12:01:12 +05:30 committed by Anas Nashif
commit b6cd192fa5

View file

@ -445,7 +445,8 @@ void _reschedule(u32_t key)
}
#ifdef CONFIG_SMP
return _Swap(key);
(void)_Swap(key);
return;
#else
if (_get_next_ready_thread() != _current) {
(void)_Swap(key);