diff options
author | Jiri Kosina <jkosina@suse.cz> | 2021-04-29 21:47:22 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2021-04-29 21:47:22 +0200 |
commit | e16e9f1184181a874cf432302ffe4689cc56b9e2 (patch) | |
tree | f239661c0e177b8d2ae00dfd6f926de61658aabf /drivers/hid/hid-sensor-custom.c | |
parent | 6c905ab1ace224e847536f658b7831e458e479dd (diff) | |
parent | ff0e9ee3a6d40c8a1c6e19ea8620ef94816eb51c (diff) |
Merge branch 'for-5.13/warnings' into for-linus
- plethora of fixes for valid gcc warnings from Lee Jones
Diffstat (limited to 'drivers/hid/hid-sensor-custom.c')
-rw-r--r-- | drivers/hid/hid-sensor-custom.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/hid/hid-sensor-custom.c b/drivers/hid/hid-sensor-custom.c index 2628bc53ed80..2e6662173a79 100644 --- a/drivers/hid/hid-sensor-custom.c +++ b/drivers/hid/hid-sensor-custom.c @@ -397,15 +397,14 @@ static ssize_t store_value(struct device *dev, struct device_attribute *attr, if (!strncmp(name, "value", strlen("value"))) { u32 report_id; - int ret; if (kstrtoint(buf, 0, &value) != 0) return -EINVAL; report_id = sensor_inst->fields[field_index].attribute. report_id; - ret = sensor_hub_set_feature(sensor_inst->hsdev, report_id, - index, sizeof(value), &value); + sensor_hub_set_feature(sensor_inst->hsdev, report_id, + index, sizeof(value), &value); } else return -EINVAL; |