mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 10:25:37 +03:00
udev/iocost: arg_target_solution is always non-NULL
This commit is contained in:
parent
5cfe9715f5
commit
878f3a4f09
@ -128,7 +128,7 @@ static int choose_solution(char **solutions, const char **ret_name) {
|
||||
return log_error_errno(
|
||||
SYNTHETIC_ERRNO(EINVAL), "IOCOST_SOLUTIONS exists in hwdb but is empty.");
|
||||
|
||||
if (arg_target_solution && strv_find(solutions, arg_target_solution)) {
|
||||
if (strv_contains(solutions, arg_target_solution)) {
|
||||
*ret_name = arg_target_solution;
|
||||
log_debug("Selected solution based on target solution: %s", *ret_name);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user