summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-05-11 14:54:53 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-05-11 14:54:53 +0000
commit5f2150161dfa9bb51423c8ca511ecdf77e3751b9 (patch)
treeeb69309d4bd5a6f00f595b6f04f5c305a3aad4ac /usr.sbin
parent3909acf1748b7d75d7aedb1cfad803c9d643a081 (diff)
No need to do a rt_find() twice.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ldpd/lde_lib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/lde_lib.c b/usr.sbin/ldpd/lde_lib.c
index a67b681ce27..aaf78878b7d 100644
--- a/usr.sbin/ldpd/lde_lib.c
+++ b/usr.sbin/ldpd/lde_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lde_lib.c,v 1.15 2010/04/13 15:39:29 michele Exp $ */
+/* $OpenBSD: lde_lib.c,v 1.16 2010/05/11 14:54:52 claudio Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -292,7 +292,6 @@ lde_kernel_remove(struct kroute *kr)
struct lde_nbr *ln;
rn = rt_find(kr->prefix.s_addr, kr->prefixlen);
- rn = rt_find(kr->prefix.s_addr, kr->prefixlen);
if (rn == NULL)
return;