Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/linux/common remove one more kassert



details:   https://anonhg.NetBSD.org/src/rev/f1ca17e0518a
branches:  trunk
changeset: 771292:f1ca17e0518a
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Nov 18 17:36:06 2011 +0000

description:
remove one more kassert

diffstat:

 sys/compat/linux/common/linux_signal.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r fbd1268465d2 -r f1ca17e0518a sys/compat/linux/common/linux_signal.c
--- a/sys/compat/linux/common/linux_signal.c    Fri Nov 18 16:10:02 2011 +0000
+++ b/sys/compat/linux/common/linux_signal.c    Fri Nov 18 17:36:06 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_signal.c,v 1.74 2011/11/18 15:45:47 christos Exp $       */
+/*     $NetBSD: linux_signal.c,v 1.75 2011/11/18 17:36:06 christos Exp $       */
 
 /*-
  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_signal.c,v 1.74 2011/11/18 15:45:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_signal.c,v 1.75 2011/11/18 17:36:06 christos Exp $");
 
 #define COMPAT_LINUX 1
 
@@ -553,6 +553,7 @@
 
        return (sigsuspend1(l, &bss));
 }
+
 static int
 fetchss(const void *u, void *s, size_t len)
 {
@@ -591,8 +592,6 @@
 {
        struct linux_siginfo lsi;
 
-       KASSERT(len == sizeof(lsi));
-
        native_to_linux_siginfo(&lsi, &((const siginfo_t *)s)->_info);
        return copyout(&lsi, u, sizeof(lsi));
 }



Home | Main Index | Thread Index | Old Index