summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2009-06-22 19:01:57 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2009-06-22 19:01:57 +0000
commit47351246f18528a0bbda6c616ec1857b54e5ccb5 (patch)
tree5576cdc4a614c0fdf24219d3a6665f86fb4f143a
parent36cc2dba503bef8e6527b1dc534a85f2779babc9 (diff)
Remove unneeded sotorawpcb() call, as the PCB is unmolested between
malloc()ing it and calling that macro. No functional change, just tightening things up a bit. ok claudio@ michele@
-rw-r--r--sys/net/rtsock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c
index 28f9283f6ce..92bbbb63bbf 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtsock.c,v 1.90 2009/06/20 10:39:52 blambert Exp $ */
+/* $OpenBSD: rtsock.c,v 1.91 2009/06/22 19:01:56 blambert Exp $ */
/* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */
/*
@@ -161,7 +161,6 @@ route_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
} else
error = raw_usrreq(so, req, m, nam, control, p);
- rp = sotorawcb(so);
if (req == PRU_ATTACH && rp) {
int af = rp->rcb_proto.sp_protocol;
if (error) {