diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-12-11 16:25:12 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-12-15 17:59:41 +0100 |
commit | 1feb8eee2de38549da5b7e54c0dbd09436dc1d06 (patch) | |
tree | 86f701466234978e9c8749c13bb99ef613c90876 | |
parent | c4dd2d75756a95302bf9e4c56346e61a61e03b66 (diff) | |
download | systemd-1feb8eee2de38549da5b7e54c0dbd09436dc1d06.tar.gz |
logs-show: drop redundant validation of machine name
The immediately following container_get_leader() call validate the name
anyway, no need to twice exactly the same way twice immediately after
each other.
-rw-r--r-- | src/shared/logs-show.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c index bf574d32a5..597ec00ffb 100644 --- a/src/shared/logs-show.c +++ b/src/shared/logs-show.c @@ -1523,9 +1523,6 @@ static int get_boot_id_for_machine(const char *machine, sd_id128_t *boot_id) { assert(machine); assert(boot_id); - if (!machine_name_is_valid(machine)) - return -EINVAL; - r = container_get_leader(machine, &pid); if (r < 0) return r; |