kernel: Remove unnecessary old code

_sem_give_non_preemptible is non preemptible and no need to move thread
to ready queue for any real use case. Remove old code. This is also
not public API

Signed-off-by: Punit Vara <punit.vara@intel.com>
This commit is contained in:
Punit Vara 2018-03-01 16:14:29 +05:30 committed by Andrew Boie
parent 2f4e987945
commit 6ce863763d

View file

@ -135,9 +135,6 @@ void _sem_give_non_preemptible(struct k_sem *sem)
return;
}
_abort_thread_timeout(thread);
_ready_thread(thread);
_set_thread_return_value(thread, 0);
}