1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

core/init: minor code cleanup

This commit is contained in:
Marian Buschsieweke 2022-01-12 16:15:48 +01:00
parent 2491bbaea3
commit d4e051596c
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

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");