1
0
forked from drath/libratbag

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:
Peter Hutterer
2016-03-16 09:45:41 +10:00
parent ad06d29140
commit 9f544cbe1c

View File

@@ -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;