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 <chris@opensourcerouting.org>
This commit is contained in:
Christian Franke 2019-05-29 14:43:24 +02:00
parent 362e887852
commit 637b00caa8

View File

@ -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);