diff --git a/src/basic/copy.c b/src/basic/copy.c index 55394871fd..5b6cae39d0 100644 --- a/src/basic/copy.c +++ b/src/basic/copy.c @@ -69,7 +69,7 @@ static int fd_is_nonblock_pipe(int fd) { struct stat st; int flags; - /* Checks whether the specified file descriptor refers to a pipe, and if so if is has O_NONBLOCK set. */ + /* Checks whether the specified file descriptor refers to a pipe, and if so if O_NONBLOCK is set. */ if (fstat(fd, &st) < 0) return -errno; diff --git a/src/basic/unit-name.c b/src/basic/unit-name.c index 6fb9cbc361..13653d9b78 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;