From: Zbigniew Jędrzejewski-Szmek Date: Fri, 13 Apr 2018 10:38:11 +0000 (+0200) Subject: basic/unit-name: remove duplicate check X-Git-Tag: v239~403^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=47f7d61ad0688b8123d490fc98197a4fb173fc49;p=thirdparty%2Fsystemd.git basic/unit-name: remove duplicate check The check that was right below already covers this case. --- diff --git a/src/basic/unit-name.c b/src/basic/unit-name.c index 6fb9cbc3618..13653d9b783 100644 --- a/src/basic/unit-name.c +++ b/src/basic/unit-name.c @@ -247,8 +247,6 @@ int unit_name_build(const char *prefix, const char *instance, const char *suffix assert(suffix); assert(ret); - if (isempty(suffix)) - return -EINVAL; if (suffix[0] != '.') return -EINVAL;