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> |
||
|---|---|---|
| .. | ||
| bmm350_i2c.c | ||
| bmm350_trigger.c | ||
| bmm350.c | ||
| bmm350.h | ||
| CMakeLists.txt | ||
| Kconfig | ||