forked from drath/libratbag
fix copy/paste error in ratbag_profile_set_default()
It does not make sense to check for .set_active_profile() and then use .set_default_profile(). Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
@@ -754,7 +754,7 @@ ratbag_profile_set_default(struct ratbag_profile *profile)
|
||||
return rc;
|
||||
|
||||
if (ratbag_device_has_capability(device, RATBAG_DEVICE_CAP_SWITCHABLE_PROFILE)) {
|
||||
assert(device->driver->set_active_profile);
|
||||
assert(device->driver->set_default_profile);
|
||||
rc = device->driver->set_default_profile(device, profile->index);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user