]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: Fix assignment with never being used
authorDonald Sharp <sharpd@nvidia.com>
Fri, 16 Feb 2024 04:27:38 +0000 (23:27 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 16 Feb 2024 04:27:38 +0000 (23:27 -0500)
commit0f7b5fcffb8322dc925d43b062048d50bf53cffc
tree0cb11e281aa1b35a649f65b793389da0acd15726
parentfa67c0b91c085d40015e782838f7d5eaf82737e9
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>
ospfd/ospf_te.c