Commit e6bd3b4f authored by Benjamin Cabé's avatar Benjamin Cabé Committed by Anas Nashif
Browse files

drivers: sensors: icp101xx: add missing error check



add missing variable assignment causing error code to be ignored

Signed-off-by: default avatarBenjamin Cabé <benjamin@zephyrproject.org>
parent a626d865
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;