From 1486259139bd26aee812c3917e14fa24f1b1eb2c Mon Sep 17 00:00:00 2001 From: Hess Nathan Date: Mon, 29 Apr 2024 11:04:42 +0200 Subject: [PATCH] coding guidelines: comply with MISRA Rule 20.9 - avoid to use undefined macros in #if expressions Signed-off-by: Hess Nathan --- drivers/serial/uart_nrfx_uarte.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/uart_nrfx_uarte.c b/drivers/serial/uart_nrfx_uarte.c index b6d138dc2e0..cc2c9b90594 100644 --- a/drivers/serial/uart_nrfx_uarte.c +++ b/drivers/serial/uart_nrfx_uarte.c @@ -548,7 +548,7 @@ static void tx_start(const struct device *dev, const uint8_t *buf, size_t len) const struct uarte_nrfx_config *config = dev->config; NRF_UARTE_Type *uarte = get_uarte_instance(dev); -#if CONFIG_PM_DEVICE +#ifdef CONFIG_PM_DEVICE enum pm_device_state state; (void)pm_device_state_get(dev, &state);