From 72a1e93eed6e4f6c79e3dd63d5cec7845481e177 Mon Sep 17 00:00:00 2001 From: Karl Fessel Date: Fri, 4 Nov 2022 16:52:32 +0100 Subject: [PATCH] sys/pm_layered: pm_get_blocker `=` instead of memcopy -ease readability --- sys/pm_layered/pm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/pm_layered/pm.c b/sys/pm_layered/pm.c index 82ec1a833e..b7c61b0759 100644 --- a/sys/pm_layered/pm.c +++ b/sys/pm_layered/pm.c @@ -19,7 +19,6 @@ */ #include -#include #include "board.h" #include "irq.h" @@ -102,7 +101,7 @@ pm_blocker_t pm_get_blocker(void) pm_blocker_t result; unsigned state = irq_disable(); - memcpy(&result, &pm_blocker, sizeof(result)); + result = pm_blocker; irq_restore(state); return result;