]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: Remove dead case
authorDonald Sharp <sharpd@cumulusnetwroks.com>
Sun, 15 May 2016 17:40:33 +0000 (13:40 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 20 May 2016 13:34:26 +0000 (09:34 -0400)
It's impossible to ever get to the else statement.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
isisd/isis_adjacency.c

index d492eafa42e7b27ea4b648d2b913f6930d49a71b..bfd43d454bd32c5c0ec078eefe11e5ff14f1c3db 100644 (file)
@@ -377,14 +377,8 @@ isis_adj_print_vty (struct isis_adjacency *adj, struct vty *vty, char detail)
   dyn = dynhn_find_by_id (adj->sysid);
   if (dyn)
     vty_out (vty, "  %-20s", dyn->name.name);
-  else if (adj->sysid)
-    {
-      vty_out (vty, "  %-20s", sysid_print (adj->sysid));
-    }
   else
-    {
-      vty_out (vty, "  unknown ");
-    }
+    vty_out (vty, "  %-20s", sysid_print (adj->sysid));
 
   if (detail == ISIS_UI_LEVEL_BRIEF)
     {