drivers: sensors: icp101xx: add missing error check
add missing variable assignment causing error code to be ignored Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
a626d865c0
commit
e6bd3b4f3e
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ static int icp101xx_init(const struct device *dev)
|
|||
LOG_ERR("Soft reset error %d", rc);
|
||||
return rc;
|
||||
}
|
||||
inv_icp101xx_init(&data->icp_device);
|
||||
rc = inv_icp101xx_init(&data->icp_device);
|
||||
if (rc != 0) {
|
||||
LOG_ERR("Init error %d", rc);
|
||||
return rc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue