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:
Benjamin Cabé 2025-06-18 14:33:15 +02:00 committed by Anas Nashif
commit e6bd3b4f3e

View file

@ -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;