]> git.proxmox.com Git - mirror_frr.git/commitdiff
isisd: Remove impossible code
authorDonald Sharp <sharpd@cumulusnetwroks.com>
Mon, 5 Sep 2016 00:13:43 +0000 (20:13 -0400)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Mon, 5 Sep 2016 00:13:43 +0000 (20:13 -0400)
te->sub_tlvs can never be NULL as that it is an
array.  Remove dead code.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
isisd/isis_te.c

index 247d699b1eca510c480b0730b4911848d10d68ef..deaaa7104bafbef3958c0f4dccb56fb2c5f0363d 100644 (file)
@@ -990,9 +990,6 @@ mpls_te_print_detail(struct vty *vty, struct te_is_neigh *te)
 
   zlog_debug ("ISIS MPLS-TE: Show database TE detail");
 
-  if (te->sub_tlvs == NULL)
-    return;
-
   tlvh = (struct subtlv_header *)te->sub_tlvs;
 
   for (; sum < te->sub_tlvs_length; tlvh = (next ? next : SUBTLV_HDR_NEXT (tlvh)))