From 0f7b5fcffb8322dc925d43b062048d50bf53cffc Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 15 Feb 2024 23:27:38 -0500 Subject: [PATCH] ospfd: Fix assignment with never being used SA finds this: error 14-Feb-2024 14:52:24 ospfd/ospf_te.c:3962:2: warning: Value stored to 'sub' is never read [deadcode.DeadStores] error 14-Feb-2024 14:52:24 sub = 0; error 14-Feb-2024 14:52:24 ^ ~ error 14-Feb-2024 14:52:24 1 warning generated. Signed-off-by: Donald Sharp --- ospfd/ospf_te.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ospfd/ospf_te.c b/ospfd/ospf_te.c index 9ba9a7659d6f..a55a37a9077b 100644 --- a/ospfd/ospf_te.c +++ b/ospfd/ospf_te.c @@ -3959,7 +3959,6 @@ static void ospf_mpls_te_show_info(struct vty *vty, struct json_object *json, json_object *jobj = NULL; sum = 0; - sub = 0; total = lsa->size - OSPF_LSA_HEADER_SIZE; for (tlvh = TLV_HDR_TOP(lsah); sum < total && tlvh;