From 17edaf458fe69e70bf8ec10230ef122488f4002c Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Thu, 24 Sep 2026 19:00:56 -0300 Subject: [PATCH] boards/sim: Fix coding style to let the PR pass Recently the nxstyle became more restrictive so it got some issues that used to be ignored in the pass. Signed-off-by: Alan C. Assis --- boards/sim/sim/sim/src/sim_bringup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boards/sim/sim/sim/src/sim_bringup.c b/boards/sim/sim/sim/src/sim_bringup.c index 278ab4c698c..9dc6bcf21d0 100644 --- a/boards/sim/sim/sim/src/sim_bringup.c +++ b/boards/sim/sim/sim/src/sim_bringup.c @@ -179,6 +179,7 @@ int sim_bringup(void) /* Initialized the RAM MTD */ struct mtd_dev_s *mtd = rammtd_initialize(ramstart, 128 * 1024); + if (mtd == NULL) { syslog(LOG_ERR, "ERROR: rammtd_initialize failed\n"); @@ -572,6 +573,7 @@ int sim_bringup(void) /* Set up a MAC address for the RNDIS device. */ uint8_t mac[6]; + mac[0] = (CONFIG_SIM_RNDIS_MACADDR >> (8 * 5)) & 0xff; mac[1] = (CONFIG_SIM_RNDIS_MACADDR >> (8 * 4)) & 0xff; mac[2] = (CONFIG_SIM_RNDIS_MACADDR >> (8 * 3)) & 0xff;