Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern delete extra m_len initialization.



details:   https://anonhg.NetBSD.org/src/rev/e199eb89765e
branches:  trunk
changeset: 790440:e199eb89765e
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 09 20:15:39 2013 +0000

description:
delete extra m_len initialization.

diffstat:

 sys/kern/uipc_syscalls.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 275a53cf2aae -r e199eb89765e sys/kern/uipc_syscalls.c
--- a/sys/kern/uipc_syscalls.c  Wed Oct 09 20:15:20 2013 +0000
+++ b/sys/kern/uipc_syscalls.c  Wed Oct 09 20:15:39 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_syscalls.c,v 1.164 2013/10/09 18:55:56 christos Exp $     */
+/*     $NetBSD: uipc_syscalls.c,v 1.165 2013/10/09 20:15:39 christos Exp $     */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls.c,v 1.164 2013/10/09 18:55:56 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls.c,v 1.165 2013/10/09 20:15:39 christos Exp $");
 
 #include "opt_pipe.h"
 
@@ -184,7 +184,6 @@
                return (error);
        }
        nam = m_get(M_WAIT, MT_SONAME);
-       nam->m_len = 0;
        *new_sock = fd;
        so = fp->f_data;
        solock(so);



Home | Main Index | Thread Index | Old Index