]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/install: remove duplicated check
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 13 Dec 2019 17:42:54 +0000 (18:42 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 13 Dec 2019 18:30:36 +0000 (19:30 +0100)
install_info_add() does the exact same check.

src/shared/install.c

index 56806609280533821e82defcfabf2976a851f8dd..53446611be87595134e0f361bb6a7f47d37e45e4 100644 (file)
@@ -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;