|
@@ -230,7 +230,7 @@ int hid_sensor_write_samp_freq_value(struct hid_sensor_common *st,
|
|
ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id,
|
|
ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id,
|
|
st->poll.index, sizeof(value), &value);
|
|
st->poll.index, sizeof(value), &value);
|
|
if (ret < 0 || value < 0)
|
|
if (ret < 0 || value < 0)
|
|
- ret = -EINVAL;
|
|
|
|
|
|
+ return -EINVAL;
|
|
|
|
|
|
ret = sensor_hub_get_feature(st->hsdev,
|
|
ret = sensor_hub_get_feature(st->hsdev,
|
|
st->poll.report_id,
|
|
st->poll.report_id,
|
|
@@ -283,7 +283,7 @@ int hid_sensor_write_raw_hyst_value(struct hid_sensor_common *st,
|
|
st->sensitivity.index, sizeof(value),
|
|
st->sensitivity.index, sizeof(value),
|
|
&value);
|
|
&value);
|
|
if (ret < 0 || value < 0)
|
|
if (ret < 0 || value < 0)
|
|
- ret = -EINVAL;
|
|
|
|
|
|
+ return -EINVAL;
|
|
|
|
|
|
ret = sensor_hub_get_feature(st->hsdev,
|
|
ret = sensor_hub_get_feature(st->hsdev,
|
|
st->sensitivity.report_id,
|
|
st->sensitivity.report_id,
|