Browse Source

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>
pull/89798/head
Benjamin Cabé 3 weeks ago committed by Anas Nashif
parent
commit
e6bd3b4f3e
  1. 2
      drivers/sensor/tdk/icp101xx/icp101xx_drv.c

2
drivers/sensor/tdk/icp101xx/icp101xx_drv.c

@ -225,7 +225,7 @@ static int icp101xx_init(const struct device *dev) @@ -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…
Cancel
Save