1
0
forked from drath/libratbag

Fix error message on ENODEV

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2016-03-11 12:21:33 +10:00
parent f5ff267c54
commit 855a6bd831

View File

@@ -312,7 +312,7 @@ ratbag_find_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 NULL;
}