basic/unit-name: remove duplicate check
The check that was right below already covers this case.
This commit is contained in:
parent
b037141d1b
commit
47f7d61ad0
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue