Project

General

Profile

Bug #957 » ethersubr.txt

sepherosa, 07/24/2008 02:07 AM

 
Index: if_ethersubr.c
===================================================================
RCS file: /dcvs/src/sys/net/if_ethersubr.c,v
retrieving revision 1.76
diff -u -p -r1.76 if_ethersubr.c
--- if_ethersubr.c 8 Jul 2008 13:50:52 -0000 1.76
+++ if_ethersubr.c 24 Jul 2008 01:56:50 -0000
@@ -1658,11 +1658,8 @@ ether_init_netpacket(int num, struct mbu
}
static __inline struct lwkt_port *
-ether_mport(int num, struct mbuf **m0)
+ether_mport(int num, struct mbuf **m)
{
- struct lwkt_port *port;
- struct mbuf *m = *m0;
-
if (num == NETISR_MAX) {
/*
* All packets whose target msgports can't be
@@ -1671,13 +1668,7 @@ ether_mport(int num, struct mbuf **m0)
*/
return cpu_portfn(0);
}
-
- port = netisr_find_port(num, &m);
- if (port == NULL)
- return NULL;
-
- *m0 = m;
- return port;
+ return netisr_find_port(num, m);
}
void
(2-2/2)