From 637b00caa8b128b7acf23ab2ae5f6dbbf40d2427 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Wed, 29 May 2019 14:43:24 +0200 Subject: [PATCH] isisd: Remove warning about shadowing a variable There is no need to redefine `struct isis_lsp *lsp` inside of the if condition. Let's just remove it. Signed-off-by: Christian Franke --- isisd/isis_vty_fabricd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isisd/isis_vty_fabricd.c b/isisd/isis_vty_fabricd.c index 2476bd2552..431ad9712a 100644 --- a/isisd/isis_vty_fabricd.c +++ b/isisd/isis_vty_fabricd.c @@ -168,7 +168,7 @@ DEFUN (show_lsp_flooding, area->area_tag : "null"); if (lspid) { - struct isis_lsp *lsp = lsp_for_arg(head, lspid); + lsp = lsp_for_arg(head, lspid); if (lsp) lsp_print_flooding(vty, lsp); -- 2.39.5