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:
parent
c4dd2d7575
commit
1feb8eee2d
|
@ -1523,9 +1523,6 @@ static int get_boot_id_for_machine(const char *machine, sd_id128_t *boot_id) {
|
||||||
assert(machine);
|
assert(machine);
|
||||||
assert(boot_id);
|
assert(boot_id);
|
||||||
|
|
||||||
if (!machine_name_is_valid(machine))
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
r = container_get_leader(machine, &pid);
|
r = container_get_leader(machine, &pid);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
Loading…
Reference in New Issue