Skip to content

Commit

Permalink
ospfd: Fix assignment with never being used
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
donaldsharp committed Feb 16, 2024
1 parent fa67c0b commit 0f7b5fc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ospfd/ospf_te.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0f7b5fc

Please sign in to comment.