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 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
bmc150_magn drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
bme280 drivers: sensor: bme280: fix "config" register intialization issue 2025-05-29 12:06:39 +02:00
bme680 drivers: sensor: bosch: bme680: fix: possible overflowed value return value 2025-03-05 09:58:35 +00:00
bmg160 drivers: sensor: bosch: bmg160: replace deprecated datasheet link 2025-02-14 17:07:12 +01:00
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 drivers: sensor: Place API into iterable section 2024-12-02 22:04:55 +00:00
bmi323 drivers: sensor: fix "Celsius" spelling 2025-02-19 18:51:13 +01:00
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 drivers: bmp581: change sensor_channel units to match spec 2025-04-26 10:55:27 +02:00
CMakeLists.txt drivers: sensor: add Bosch BMM350 magnetometer driver 2025-03-20 12:17:41 +01:00
Kconfig drivers: sensor: add Bosch BMM350 magnetometer driver 2025-03-20 12:17:41 +01:00