Skip to content

Commit ea6eade

Browse files
wm-eisoskartben
authored andcommitted
drivers: sensor: wsen_itds_2533020201601: fix unhandled returned values
The returned values from function calls should be ignored since these function calls are dummy reads. fixes #90480 Signed-off-by: Wajdi ELMuhtadi <[email protected]>
1 parent 569f4d6 commit ea6eade

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/sensor/wsen/wsen_itds_2533020201601/wsen_itds_2533020201601_trigger.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ int itds_2533020201601_trigger_set(const struct device *dev, const struct sensor
228228
data->temp_data_ready_handler);
229229
if (state) {
230230
/* Dummy read: re-trigger interrupt */
231-
ITDS_getRawAccelerationX(&data->sensor_interface, &x);
232-
ITDS_getRawAccelerationY(&data->sensor_interface, &y);
233-
ITDS_getRawAccelerationZ(&data->sensor_interface, &z);
231+
(void)ITDS_getRawAccelerationX(&data->sensor_interface, &x);
232+
(void)ITDS_getRawAccelerationY(&data->sensor_interface, &y);
233+
(void)ITDS_getRawAccelerationZ(&data->sensor_interface, &z);
234234
}
235235
if (ITDS_enableDataReadyINT1(&data->sensor_interface, state) !=
236236
WE_SUCCESS) {
@@ -246,7 +246,7 @@ int itds_2533020201601_trigger_set(const struct device *dev, const struct sensor
246246
data->temp_data_ready_handler);
247247
if (state) {
248248
/* Dummy read: re-trigger interrupt */
249-
ITDS_getRawTemperature12bit(&data->sensor_interface, &x);
249+
(void)ITDS_getRawTemperature12bit(&data->sensor_interface, &x);
250250
}
251251
if (ITDS_enableTempDataReadyINT1(&data->sensor_interface, state) !=
252252
WE_SUCCESS) {

0 commit comments

Comments
 (0)