Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Since we know that `va' is non-NULL here, no need t...



details:   https://anonhg.NetBSD.org/src/rev/87d0cc427983
branches:  trunk
changeset: 518427:87d0cc427983
user:      enami <enami%NetBSD.org@localhost>
date:      Fri Nov 30 01:54:21 2001 +0000

description:
Since we know that `va' is non-NULL here, no need to test if it is NULL.

diffstat:

 sys/kern/kern_malloc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7093e25269b0 -r 87d0cc427983 sys/kern/kern_malloc.c
--- a/sys/kern/kern_malloc.c    Fri Nov 30 01:31:30 2001 +0000
+++ b/sys/kern/kern_malloc.c    Fri Nov 30 01:54:21 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_malloc.c,v 1.66 2001/11/21 01:30:04 enami Exp $   */
+/*     $NetBSD: kern_malloc.c,v 1.67 2001/11/30 01:54:21 enami Exp $   */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_malloc.c,v 1.66 2001/11/21 01:30:04 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_malloc.c,v 1.67 2001/11/30 01:54:21 enami Exp $");
 
 #include "opt_lockdebug.h"
 
@@ -410,7 +410,7 @@
        domlog(va, size, type, 1, file, line);
 #endif
        splx(s);
-       if (va != NULL && (flags & M_ZERO))
+       if ((flags & M_ZERO) != 0)
                memset(va, 0, size);
        return ((void *) va);
 }



Home | Main Index | Thread Index | Old Index