From: Lennart Poettering Date: Fri, 6 Feb 2026 15:16:14 +0000 (+0100) Subject: inhibit: drop redundant table_set_header() caller X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c9de6daee41658139c9a2319a9c3b97bdc06471;p=thirdparty%2Fsystemd.git inhibit: drop redundant table_set_header() caller The immediately following table_print_with_pager() call already processes arg_legend, no need to do this manually first. --- diff --git a/src/login/inhibit.c b/src/login/inhibit.c index 4df17d2d699..493f06f24e4 100644 --- a/src/login/inhibit.c +++ b/src/login/inhibit.c @@ -153,8 +153,6 @@ static int print_inhibitors(sd_bus *bus) { if (r < 0) return table_log_sort_error(r); - table_set_header(table, arg_legend); - r = table_print_with_pager(table, arg_json_format_flags, arg_pager_flags, arg_legend); if (r < 0) return r;