From 10aca80f58d6dd2d70fb405fa57b1b1fc93fefc3 Mon Sep 17 00:00:00 2001 From: danpetry Date: Wed, 12 Dec 2018 14:22:24 +0100 Subject: [PATCH] fixup: sys/riotboot: add riotboot_slot --- sys/riotboot/slot.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/sys/riotboot/slot.c b/sys/riotboot/slot.c index 1a7150f9667bf..09cac62a789bf 100644 --- a/sys/riotboot/slot.c +++ b/sys/riotboot/slot.c @@ -72,13 +72,9 @@ void riotboot_slot_dump_addrs(void) for (unsigned slot = 0; slot < riotboot_slot_numof; slot++) { const riotboot_hdr_t *hdr = riotboot_slot_get_hdr(slot); - if (hdr != NULL) { - printf("slot %u: metadata: %p image: 0x%08" PRIx32 "\n", slot, - hdr, - hdr->start_addr); - } else { - printf("[riotboot_slot]: No riotboot_hdr found at %p\n", hdr); - } + printf("slot %u: metadata: %p image: 0x%08" PRIx32 "\n", slot, + hdr, + hdr->start_addr); } }