misc: assert_post_action: Treat POSIX arch like others

After #12732, 6904501173
asserts call k_panic.

Before this, the POSIX arch had its own hack in the
__ASSERT_POST implementation to terminate the process instead
of spining forever.

But the POSIX arch does implement k_panic properly, so there
is no need anymore for this hack.
=> Remove the special treatment for POSIX ARCH

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
Alberto Escolar Piedras 2019-02-03 11:12:03 +01:00 committed by Andrew Boie
parent 1305a9eb35
commit c2699dd52d

View file

@ -9,10 +9,5 @@
void assert_post_action(void)
{
if (IS_ENABLED(CONFIG_ARCH_POSIX)) {
extern void posix_exit(int exit_code);
posix_exit(1);
} else {
k_panic();
}
k_panic();
}