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.
This commit is contained in:
Lennart Poettering 2020-12-11 16:25:12 +01:00
parent c4dd2d7575
commit 1feb8eee2d
1 changed files with 0 additions and 3 deletions

View File

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