zephyr/drivers/sensor/bosch
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
..
bma4xx drivers: sensors: add missing const qualifiers 2025-06-18 17:47:18 -04:00
bma280
bmc150_magn
bme280 drivers: sensor: bme280: fix "config" register intialization issue 2025-05-29 12:06:39 +02:00
bme680
bmg160
bmi08x sensor: bmi08x: Fix variable name in bmi08x_acc_trigger_mode_init 2025-05-09 21:09:04 +02:00
bmi160 sensor: remove PM state checks from API functions 2025-05-01 18:15:42 +02:00
bmi270
bmi323
bmm150 sensor: remove PM state checks from API functions 2025-05-01 18:15:42 +02:00
bmm350 drivers: sensor: bmm350: fix redundant return logic in init_chip 2025-06-27 09:04:32 -10:00
bmp180 sensor: remove PM state checks from API functions 2025-05-01 18:15:42 +02:00
bmp388 sensor: remove PM state checks from API functions 2025-05-01 18:15:42 +02:00
bmp581
CMakeLists.txt
Kconfig