From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Benjamin Marzinski Date: Wed, 9 Nov 2022 15:49:42 -0600 Subject: [PATCH] multipathd: don't initialize the field width in show_path() It's not used, so don't set it up. Signed-off-by: Benjamin Marzinski Reviewed-by: Martin Wilck --- multipathd/cli_handlers.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/multipathd/cli_handlers.c b/multipathd/cli_handlers.c index 5f0dd04e..e65fb75c 100644 --- a/multipathd/cli_handlers.c +++ b/multipathd/cli_handlers.c @@ -67,12 +67,7 @@ static int show_path (struct strbuf *reply, struct vectors *vecs, struct path *pp, char *style) { - fieldwidth_t *width __attribute__((cleanup(cleanup_ucharp))) = NULL; - - if ((width = alloc_path_layout()) == NULL) - return 1; - get_path_layout(vecs->pathvec, 1, width); - if (snprint_path(reply, style, pp, 0) < 0) + if (snprint_path(reply, style, pp, NULL) < 0) return 1; return 0; }