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> |
||
|---|---|---|
| .. | ||
| bma4xx | ||
| bma280 | ||
| bmc150_magn | ||
| bme280 | ||
| bme680 | ||
| bmg160 | ||
| bmi08x | ||
| bmi160 | ||
| bmi270 | ||
| bmi323 | ||
| bmm150 | ||
| bmm350 | ||
| bmp180 | ||
| bmp388 | ||
| bmp581 | ||
| CMakeLists.txt | ||
| Kconfig | ||