summaryrefslogtreecommitdiffstats
path: root/sys/netinet/if_ether.c
diff options
context:
space:
mode:
authorzec <zec@FreeBSD.org>2010-11-22 14:16:23 +0000
committerzec <zec@FreeBSD.org>2010-11-22 14:16:23 +0000
commitcc776ae8bd6fee288915ecbda0c4a877e65594e4 (patch)
tree757165712253dab3f59285b380eb43b7df7806db /sys/netinet/if_ether.c
parent3aec76f035865d47bf52471aecdc000518a7d857 (diff)
downloadFreeBSD-src-cc776ae8bd6fee288915ecbda0c4a877e65594e4.zip
FreeBSD-src-cc776ae8bd6fee288915ecbda0c4a877e65594e4.tar.gz
Remove an apparently redundant CURVNET_SET() / CURVNET_RESTORE() pair.
MFC after: 3 days
Diffstat (limited to 'sys/netinet/if_ether.c')
-rw-r--r--sys/netinet/if_ether.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index a6cc4e4..e8a03ef 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -154,12 +154,10 @@ arp_ifscrub(struct ifnet *ifp, uint32_t addr)
addr4.sin_len = sizeof(addr4);
addr4.sin_family = AF_INET;
addr4.sin_addr.s_addr = addr;
- CURVNET_SET(ifp->if_vnet);
IF_AFDATA_LOCK(ifp);
lla_lookup(LLTABLE(ifp), (LLE_DELETE | LLE_IFADDR),
(struct sockaddr *)&addr4);
IF_AFDATA_UNLOCK(ifp);
- CURVNET_RESTORE();
}
#endif
OpenPOWER on IntegriCloud