From: Zbigniew Jędrzejewski-Szmek Date: Fri, 13 Dec 2019 17:42:54 +0000 (+0100) Subject: shared/install: remove duplicated check X-Git-Tag: v245-rc1~254^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d9c1c43e678f93e1bda7478870c615f54a01e7b7;p=thirdparty%2Fsystemd.git shared/install: remove duplicated check install_info_add() does the exact same check. --- diff --git a/src/shared/install.c b/src/shared/install.c index 56806609280..53446611be8 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -1138,9 +1138,6 @@ static int config_parse_also( if (r < 0) return r; - if (!unit_name_is_valid(printed, UNIT_NAME_ANY)) - return -EINVAL; - r = install_info_add(c, printed, NULL, true, &alsoinfo); if (r < 0) return r;