From 20afd9a184eba4c358ff6470e0e6deb441b1095f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 14 Mar 2022 11:42:57 +0100 Subject: [PATCH] systemctl: remove unused parameter --- src/systemctl/systemctl-enable.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/systemctl/systemctl-enable.c b/src/systemctl/systemctl-enable.c index 52c3ca75f0..9fb935cc5e 100644 --- a/src/systemctl/systemctl-enable.c +++ b/src/systemctl/systemctl-enable.c @@ -39,7 +39,7 @@ static int normalize_filenames(char **names) { return 0; } -static int normalize_names(char **names, bool warn_if_path) { +static int normalize_names(char **names) { char **u; bool was_path = false; @@ -56,7 +56,7 @@ static int normalize_names(char **names, bool warn_if_path) { was_path = true; } - if (warn_if_path && was_path) + if (was_path) log_warning("Warning: Can't execute disable on the unit file path. Proceeding with the unit name."); return 0; @@ -92,7 +92,7 @@ int verb_enable(int argc, char *argv[], void *userdata) { } if (streq(verb, "disable")) { - r = normalize_names(names, true); + r = normalize_names(names); if (r < 0) return r; }