summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_interface.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-06-19 22:33:01 +0300
committerGitHub <noreply@github.com>2022-06-19 22:33:01 +0300
commit4ed0abcb55c9b084eddd645c6043442083acc28f (patch)
tree15f631dc898fb80ec3e52bb6f5f49455876c2b31 /ospf6d/ospf6_interface.c
parentee91e848ff7020be6840d8bf82242f20217667af (diff)
parent00c89a3673af923353905a0a2a0321bc112be98c (diff)
Merge pull request #11423 from donaldsharp/lgtm_fixes
Lgtm fixes
Diffstat (limited to 'ospf6d/ospf6_interface.c')
-rw-r--r--ospf6d/ospf6_interface.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c
index 2a503c6233..efa5d2b7ab 100644
--- a/ospf6d/ospf6_interface.c
+++ b/ospf6d/ospf6_interface.c
@@ -165,8 +165,6 @@ static uint32_t ospf6_interface_get_cost(struct ospf6_interface *oi)
cost = (uint32_t)((double)refbw / (double)bw + (double)0.5);
if (cost < 1)
cost = 1;
- else if (cost > UINT32_MAX)
- cost = UINT32_MAX;
}
return cost;