Module Name:    src
Committed By:   maya
Date:           Sun Feb  5 06:26:07 UTC 2017

Modified Files:
        src/sys/arch/amd64/amd64: machdep.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.248 -r1.249 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/amd64/amd64/machdep.c
diff -u src/sys/arch/amd64/amd64/machdep.c:1.248 src/sys/arch/amd64/amd64/machdep.c:1.249
--- src/sys/arch/amd64/amd64/machdep.c:1.248	Sun Feb  5 06:13:53 2017
+++ src/sys/arch/amd64/amd64/machdep.c	Sun Feb  5 06:26:06 2017
@@ -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 @@ sparse_dump_mark(void)
 	     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

Reply via email to