Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Member will never be null, so remove check.



details:   https://anonhg.NetBSD.org/src/rev/c90ddec8df87
branches:  trunk
changeset: 327117:c90ddec8df87
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Feb 27 18:10:01 2014 +0000

description:
Member will never be null, so remove check.

diffstat:

 sys/arch/arm/arm32/pmap.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r c979693c1d9b -r c90ddec8df87 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Thu Feb 27 18:09:38 2014 +0000
+++ b/sys/arch/arm/arm32/pmap.c Thu Feb 27 18:10:01 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.269 2014/02/26 19:59:49 matt Exp $  */
+/*     $NetBSD: pmap.c,v 1.270 2014/02/27 18:10:01 joerg Exp $ */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -209,7 +209,7 @@
 #include <arm/locore.h>
 #include <arm/arm32/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.269 2014/02/26 19:59:49 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.270 2014/02/27 18:10:01 joerg Exp $");
 
 #ifdef PMAP_DEBUG
 
@@ -5115,9 +5115,6 @@
                return true;
        }
 
-       if (pm->pm_l2 == NULL)
-               return false;
-
        l2 = pm->pm_l2[L2_IDX(l1idx)];
 
        if (l2 == NULL ||



Home | Main Index | Thread Index | Old Index