summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2015-01-21 21:32:43 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2015-01-21 21:32:43 +0000
commit845bafcb5deb45c57feac32817a690f65de50c66 (patch)
tree254769ef9a12a7dbf38fa1a26e6339f2e6a59bbe
parent41fcb587e1028cd0659bd8144057209737ff5c5f (diff)
Remove the useless variable ifa in rt_getifa().
OK mpi@
-rw-r--r--sys/net/route.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 74deb674779..640e523c290 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.200 2015/01/18 14:51:43 mpi Exp $ */
+/* $OpenBSD: route.c,v 1.201 2015/01/21 21:32:42 bluhm Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -650,7 +650,6 @@ ifa_ifwithroute(int flags, struct sockaddr *dst, struct sockaddr *gateway,
int
rt_getifa(struct rt_addrinfo *info, u_int rtid)
{
- struct ifaddr *ifa;
struct ifnet *ifp = NULL;
/*
@@ -701,7 +700,7 @@ rt_getifa(struct rt_addrinfo *info, u_int rtid)
sa, sa, rtid);
}
- if ((ifa = info->rti_ifa) == NULL)
+ if (info->rti_ifa == NULL)
return (ENETUNREACH);
return (0);