From d316426eeef830e44a05248595eba8cdc7085d3b Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 20 May 2022 16:49:14 +0900 Subject: [PATCH] shared/extension-release: drop unnecessary strna() wrapper These are not NULL. --- src/shared/extension-release.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shared/extension-release.c b/src/shared/extension-release.c index dccc999907..db87b23a71 100644 --- a/src/shared/extension-release.c +++ b/src/shared/extension-release.c @@ -51,13 +51,13 @@ int extension_release_validate( extension_release_id = strv_env_pairs_get(extension_release, "ID"); if (isempty(extension_release_id)) { log_debug("Extension '%s' does not contain ID in extension-release but requested to match '%s'", - name, strna(host_os_release_id)); + name, host_os_release_id); return 0; } - if (!streq_ptr(host_os_release_id, extension_release_id)) { + if (!streq(host_os_release_id, extension_release_id)) { log_debug("Extension '%s' is for OS '%s', but deployed on top of '%s'.", - name, strna(extension_release_id), strna(host_os_release_id)); + name, extension_release_id, host_os_release_id); return 0; }