evdev: return an error if the profile change failed

If we get to this point, we've already ruled out invalid arguments and this
shouldn't really fail, so let's reply with UNSUPPORTED instead.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-04-12 10:56:32 +10:00
parent fde4255f29
commit 7525aea272

View file

@ -1025,6 +1025,7 @@ evdev_accel_config_set_profile(struct libinput_device *libinput_device,
filter_destroy(filter);
} else {
device->pointer.filter = filter;
return LIBINPUT_CONFIG_STATUS_UNSUPPORTED;
}
return LIBINPUT_CONFIG_STATUS_SUCCESS;