summaryrefslogtreecommitdiffstats
path: root/src/udev/iocost
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-04-26 04:19:53 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-04-26 04:19:53 +0200
commit878f3a4f0949bba4a2e1d0084e8d45cae125fe66 (patch)
tree902dbd4ee92b8e9334e06ebcccaebe6c9c228332 /src/udev/iocost
parentudev/iocost: set default target in parse_config() (diff)
downloadsystemd-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.c2
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 {