kernel: Explicitly ignoring _Swap return

Ignoring _Swap return where there is no treatment or nothing to do.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
diff --git a/kernel/sched.c b/kernel/sched.c
index f91dfe3..f014ced 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -789,10 +789,10 @@
 	}
 
 #ifdef CONFIG_SMP
-	_Swap(irq_lock());
+	(void)_Swap(irq_lock());
 #else
 	if (_get_next_ready_thread() != _current) {
-		_Swap(irq_lock());
+		(void)_Swap(irq_lock());
 	}
 #endif
 }
@@ -827,7 +827,7 @@
 	_remove_thread_from_ready_q(_current);
 	_add_thread_timeout(_current, NULL, ticks);
 
-	_Swap(key);
+	(void)_Swap(key);
 #endif
 }