From: Lennart Poettering Date: Fri, 11 Dec 2020 15:25:12 +0000 (+0100) Subject: logs-show: drop redundant validation of machine name X-Git-Tag: v248-rc1~499^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1feb8eee2de38549da5b7e54c0dbd09436dc1d06;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c index bf574d32a57..597ec00ffbb 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;