zephyr/drivers/sensor/bosch/bmm350
Gaetan Perrot e13f64ac47 drivers: sensor: bmm350: fix redundant return logic in init_chip
Add an explicit log message if setting suspend mode fails during error
handling in bmm350_init_chip(), to improve debuggability.

This addresses Coverity issue CID 520279 (Incorrect expression - CWE-398),
which flagged a conditional block where both branches effectively led to
the same outcome (return -EIO), making it appear redundant.

By adding a log before returning, we clarify the purpose of the condition
and avoid the issue of "identical code for different branches", while
keeping the functional behavior unchanged.

Coverity-CID: 520279

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-06-27 09:04:32 -10:00
..
bmm350_i2c.c
bmm350_trigger.c drivers: sensor: bmm350: add pad ctrl and int ctrl dts config 2025-06-26 10:55:54 -05:00
bmm350.c drivers: sensor: bmm350: fix redundant return logic in init_chip 2025-06-27 09:04:32 -10:00
bmm350.h drivers: sensor: bmm350: run clang-format 2025-06-26 10:55:54 -05:00
CMakeLists.txt
Kconfig