mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-08 07:33:53 +01:00
Revert "Fix error message on ENODEV"
We now get an error message for all devices that have duplicate event nodes
because we use -ENODEV for 'device not found', 'device is a duplicates' and
'device doesn't have the hidraw report'.
The original commit was triggered by a misunderstanding of the error message,
will be fixed in a follow-up.
This reverts commit 855a6bd831.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -329,7 +329,7 @@ ratbag_assign_driver(struct ratbag_device *device,
|
||||
|
||||
device->driver = NULL;
|
||||
|
||||
if (rc == -ENODEV)
|
||||
if (rc != -ENODEV)
|
||||
log_error(ratbag, "%s: no hidraw device found\n", device->name);
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user