1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #17506 from maribu/core/init

core/init: minor code cleanup
This commit is contained in:
benpicco 2022-01-15 03:59:54 +01:00 committed by GitHub
commit 43b9a82806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,19 +19,16 @@
* @}
*/
#include <stdint.h>
#include <stdbool.h>
#include <errno.h>
#include "kernel_init.h"
#include "thread.h"
#include <stdbool.h>
#include <stdint.h>
#include "auto_init.h"
#include "irq.h"
#include "kernel_init.h"
#include "log.h"
#include "periph/pm.h"
#ifdef MODULE_AUTO_INIT
#include <auto_init.h>
#endif
#include "thread.h"
#define ENABLE_DEBUG 0
#include "debug.h"
@ -47,9 +44,9 @@ static void *main_trampoline(void *arg)
{
(void)arg;
#ifdef MODULE_AUTO_INIT
auto_init();
#endif
if (IS_USED(MODULE_AUTO_INIT)) {
auto_init();
}
if (!IS_ACTIVE(CONFIG_SKIP_BOOT_MSG)) {
LOG_INFO(CONFIG_BOOT_MSG_STRING "\n");