basic/unit-name: remove duplicate check

The check that was right below already covers this case.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-04-13 12:38:11 +02:00
parent b037141d1b
commit 47f7d61ad0

View file

@ -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;