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 <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2024-02-15 23:27:38 -05:00
parent fa67c0b91c
commit 0f7b5fcffb

View File

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