]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logs-show: drop redundant validation of machine name
authorLennart Poettering <lennart@poettering.net>
Fri, 11 Dec 2020 15:25:12 +0000 (16:25 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 15 Dec 2020 16:59:41 +0000 (17:59 +0100)
The immediately following container_get_leader() call validate the name
anyway, no need to twice exactly the same way twice immediately after
each other.

src/shared/logs-show.c

index bf574d32a57dc02876b551049acb4ae4dc26db55..597ec00ffbba51a57a11d35445357910bc3b0169 100644 (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;