basic/unit-name: remove duplicate check
The check that was right below already covers this case.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user