|
@@ -451,13 +451,13 @@ static ssize_t lg4ff_range_store(struct device *dev, struct device_attribute *at
|
|
drv_data = hid_get_drvdata(hid);
|
|
drv_data = hid_get_drvdata(hid);
|
|
if (!drv_data) {
|
|
if (!drv_data) {
|
|
hid_err(hid, "Private driver data not found!\n");
|
|
hid_err(hid, "Private driver data not found!\n");
|
|
- return 0;
|
|
|
|
|
|
+ return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
entry = drv_data->device_props;
|
|
entry = drv_data->device_props;
|
|
if (!entry) {
|
|
if (!entry) {
|
|
hid_err(hid, "Device properties not found!\n");
|
|
hid_err(hid, "Device properties not found!\n");
|
|
- return 0;
|
|
|
|
|
|
+ return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
if (range == 0)
|
|
if (range == 0)
|