diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-26 04:19:53 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-26 04:19:53 +0200 |
commit | 878f3a4f0949bba4a2e1d0084e8d45cae125fe66 (patch) | |
tree | 902dbd4ee92b8e9334e06ebcccaebe6c9c228332 /src/udev/iocost | |
parent | udev/iocost: set default target in parse_config() (diff) | |
download | systemd-878f3a4f0949bba4a2e1d0084e8d45cae125fe66.tar.xz systemd-878f3a4f0949bba4a2e1d0084e8d45cae125fe66.zip |
udev/iocost: arg_target_solution is always non-NULL
Diffstat (limited to 'src/udev/iocost')
-rw-r--r-- | src/udev/iocost/iocost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/iocost/iocost.c b/src/udev/iocost/iocost.c index 2ded9ab9f7..15afdacd31 100644 --- a/src/udev/iocost/iocost.c +++ b/src/udev/iocost/iocost.c @@ -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 { |