Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Eliminat an unused variable and simplify the KASSER...
details: https://anonhg.NetBSD.org/src/rev/4ce1588277de
branches: trunk
changeset: 790875:4ce1588277de
user: martin <martin%NetBSD.org@localhost>
date: Fri Oct 25 19:55:22 2013 +0000
description:
Eliminat an unused variable and simplify the KASSERT which used to use it
diffstat:
sys/kern/uipc_usrreq.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (43 lines):
diff -r 61fdb0723261 -r 4ce1588277de sys/kern/uipc_usrreq.c
--- a/sys/kern/uipc_usrreq.c Fri Oct 25 16:34:20 2013 +0000
+++ b/sys/kern/uipc_usrreq.c Fri Oct 25 19:55:22 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_usrreq.c,v 1.146 2013/10/08 17:21:24 christos Exp $ */
+/* $NetBSD: uipc_usrreq.c,v 1.147 2013/10/25 19:55:22 martin Exp $ */
/*-
* Copyright (c) 1998, 2000, 2004, 2008, 2009 The NetBSD Foundation, Inc.
@@ -96,7 +96,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.146 2013/10/08 17:21:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.147 2013/10/25 19:55:22 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -369,7 +369,6 @@
{
struct unpcb *unp = sotounpcb(so);
struct socket *so2;
- struct proc *p;
u_int newhiwat;
int error = 0;
@@ -380,7 +379,6 @@
if (req != PRU_SEND && req != PRU_SENDOOB && control)
panic("uipc_usrreq: unexpected control mbuf");
#endif
- p = l ? l->l_proc : NULL;
if (req != PRU_ATTACH) {
if (unp == NULL) {
error = EINVAL;
@@ -567,7 +565,7 @@
m_freem(m);
break;
}
- KASSERT(p != NULL);
+ KASSERT(l != NULL);
error = unp_output(m, control, unp, l);
if (nam)
unp_disconnect(unp);
Home |
Main Index |
Thread Index |
Old Index