Commit dbf104fd authored by Lee Jones's avatar Lee Jones Committed by Benjamin Tissoires

HID: hid-sensor-custom: Remove unused variable 'ret'

Fixes the following W=1 kernel build warning(s):

 drivers/hid/hid-sensor-custom.c: In function ‘store_value’:
 drivers/hid/hid-sensor-custom.c:400:7: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]

Cc: Jiri Kosina <jikos@kernel.org>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: linux-input@vger.kernel.org
Cc: linux-iio@vger.kernel.org
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Acked-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
parent 5abb5445
...@@ -397,14 +397,13 @@ static ssize_t store_value(struct device *dev, struct device_attribute *attr, ...@@ -397,14 +397,13 @@ static ssize_t store_value(struct device *dev, struct device_attribute *attr,
if (!strncmp(name, "value", strlen("value"))) { if (!strncmp(name, "value", strlen("value"))) {
u32 report_id; u32 report_id;
int ret;
if (kstrtoint(buf, 0, &value) != 0) if (kstrtoint(buf, 0, &value) != 0)
return -EINVAL; return -EINVAL;
report_id = sensor_inst->fields[field_index].attribute. report_id = sensor_inst->fields[field_index].attribute.
report_id; report_id;
ret = sensor_hub_set_feature(sensor_inst->hsdev, report_id, sensor_hub_set_feature(sensor_inst->hsdev, report_id,
index, sizeof(value), &value); index, sizeof(value), &value);
} else } else
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment