diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2015-01-21 21:32:43 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2015-01-21 21:32:43 +0000 |
commit | 845bafcb5deb45c57feac32817a690f65de50c66 (patch) | |
tree | 254769ef9a12a7dbf38fa1a26e6339f2e6a59bbe | |
parent | 41fcb587e1028cd0659bd8144057209737ff5c5f (diff) |
Remove the useless variable ifa in rt_getifa().
OK mpi@
-rw-r--r-- | sys/net/route.c | 5 |
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); |