diff options
author | bluhm <bluhm@openbsd.org> | 2012-09-18 18:58:56 +0000 |
---|---|---|
committer | bluhm <bluhm@openbsd.org> | 2012-09-18 18:58:56 +0000 |
commit | f35587b2ba61aa5f907647d42d01f7ba55f77edc (patch) | |
tree | c629a0d46eaf820c4351e6dc6696b107c4c4cecb /usr.sbin/ospfd/rde_spf.c | |
parent | Once resolv.conf.saved has been copied back as resolv.conf, delete it so (diff) | |
download | wireguard-openbsd-f35587b2ba61aa5f907647d42d01f7ba55f77edc.tar.xz wireguard-openbsd-f35587b2ba61aa5f907647d42d01f7ba55f77edc.zip |
The if (!better && !equal) check is redundant as the same condition
is checked a few lines below again. Fewer checks make the code
more readable.
ok stsp@
Diffstat (limited to 'usr.sbin/ospfd/rde_spf.c')
-rw-r--r-- | usr.sbin/ospfd/rde_spf.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/ospfd/rde_spf.c b/usr.sbin/ospfd/rde_spf.c index 7933c0cd92b..b79ba30506f 100644 --- a/usr.sbin/ospfd/rde_spf.c +++ b/usr.sbin/ospfd/rde_spf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_spf.c,v 1.74 2012/04/04 19:20:44 claudio Exp $ */ +/* $OpenBSD: rde_spf.c,v 1.75 2012/09/18 18:58:56 bluhm Exp $ */ /* * Copyright (c) 2005 Esben Norby <norby@openbsd.org> @@ -917,9 +917,6 @@ rt_update(struct in_addr prefix, u_int8_t prefixlen, struct v_nexthead *vnh, break; } - if (!better && !equal) - return; - if (better) { TAILQ_FOREACH(rn, &rte->nexthop, entry) rn->invalid = 1; |