mirror of
https://github.com/apache/nuttx.git
synced 2026-05-09 23:12:17 +08:00
a0b8969636
Move the NULL check for radio pointer before the DEBUGASSERT that dereferences it. Previously DEBUGASSERT(radio->r_dev.d_lltype == ...) was executed before verifying radio != NULL, which would crash when the device is not found. Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>