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/1061b17c07a6
branches: trunk
changeset: 351180:1061b17c07a6
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 c4c36fe8c493 -r 1061b17c07a6 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