mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 02:20:54 +00:00
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:
parent
fa67c0b91c
commit
0f7b5fcffb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user