Revert "iio: hid-sensors: Fix an error handling path in _hid_sensor_set_report_latency()"

This reverts commit e3f1ddd8b7.
This commit is contained in:
Ksawlii 2024-11-24 00:22:52 +01:00
parent 845b5cd07c
commit f2d6a87edf

View file

@ -35,7 +35,7 @@ static ssize_t _hid_sensor_set_report_latency(struct device *dev,
latency = integer * 1000 + fract / 1000;
ret = hid_sensor_set_report_latency(attrb, latency);
if (ret < 0)
return ret;
return len;
attrb->latency_ms = hid_sensor_get_report_latency(attrb);