Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 Remove duplicate check. uvm_physseg_val...



details:   https://anonhg.NetBSD.org/src/rev/891a7c4cd051
branches:  trunk
changeset: 821431:891a7c4cd051
user:      maya <maya%NetBSD.org@localhost>
date:      Sun Feb 05 06:26:06 2017 +0000

description:
Remove duplicate check. uvm_physseg_valid_p(upm) == false is also
our for loop exit condition, and will never happen. NFC

diffstat:

 sys/arch/amd64/amd64/machdep.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r 5df4c6ec41fb -r 891a7c4cd051 sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c    Sun Feb 05 06:13:53 2017 +0000
+++ b/sys/arch/amd64/amd64/machdep.c    Sun Feb 05 06:26:06 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.248 2017/02/05 06:13:53 maya Exp $       */
+/*     $NetBSD: machdep.c,v 1.249 2017/02/05 06:26:06 maya Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008, 2011
@@ -111,7 +111,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.248 2017/02/05 06:13:53 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.249 2017/02/05 06:26:06 maya Exp $");
 
 /* #define XENDEBUG_LOW  */
 
@@ -803,9 +803,6 @@
             upm = uvm_physseg_get_next(upm)) {
                paddr_t pfn;
 
-               if (uvm_physseg_valid_p(upm) == false)
-                       break;
-
                /*
                 * We assume that seg->start to seg->end are
                 * uvm_page_physload()ed



Home | Main Index | Thread Index | Old Index