mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
steelseries: check for settings reading errors
This commit is contained in:
@@ -409,7 +409,12 @@ steelseries_probe(struct ratbag_device *device)
|
||||
}
|
||||
}
|
||||
|
||||
steelseries_read_settings(device);
|
||||
rc = steelseries_read_settings(device);
|
||||
/* Some devices don't support reading settings, so ignore ENOTSUP. */
|
||||
if (rc < 0 && rc != -ENOTSUP) {
|
||||
log_error(device->ratbag, "Failed to read device settings\n");
|
||||
return rc;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user