Skip to content

Commit d8b3775

Browse files
rruuaanngkartben
authored andcommitted
drivers: sensor: renesas: Fix unchecked return value in hs400x
Fix unchecked return value scanned by Coverity. Signed-off-by: James Roy <rruuaanng@outlook.com>
1 parent d66f081 commit d8b3775

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/sensor/renesas/hs400x/hs400x.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ static void hs400x_all_measurements_stop(const struct device *dev)
147147
* Stop previous periodic measurement.
148148
* If a periodic measurement is not running, HS400x device replies with NACK.
149149
*/
150-
i2c_write_dt(&cfg->bus, &periodic_measurement_stop, 1);
150+
(void)i2c_write_dt(&cfg->bus, &periodic_measurement_stop, 1);
151151

152152
/*
153153
* Clear previous no-hold measurement.
154154
* If a measurement is not complete, HS400x device replies with NACK.
155155
*/
156-
i2c_read_dt(&cfg->bus, dummy, 2);
156+
(void)i2c_read_dt(&cfg->bus, dummy, 2);
157157
}
158158

159159
static int hs400x_init(const struct device *dev)

0 commit comments

Comments
 (0)