From 1feb8eee2de38549da5b7e54c0dbd09436dc1d06 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 11 Dec 2020 16:25:12 +0100 Subject: [PATCH] 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. --- src/shared/logs-show.c | 3 --- 1 file changed, 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;