Revert "iio: hid-sensors: Fix an error handling path in _hid_sensor_set_report_latency()"
This reverts commit e3f1ddd8b7
.
This commit is contained in:
parent
845b5cd07c
commit
f2d6a87edf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue