From: Yu Watanabe Date: Wed, 26 Apr 2023 02:19:53 +0000 (+0900) Subject: udev/iocost: arg_target_solution is always non-NULL X-Git-Tag: v254-rc1~626^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=878f3a4f0949bba4a2e1d0084e8d45cae125fe66;p=thirdparty%2Fsystemd.git udev/iocost: arg_target_solution is always non-NULL --- diff --git a/src/udev/iocost/iocost.c b/src/udev/iocost/iocost.c index 2ded9ab9f78..15afdacd310 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 {