Remove an unused variable.
This commit is contained in:
parent
2512e501f0
commit
9853da3d35
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: pmap.c,v 1.23 2003/07/15 02:54:43 lukem Exp $ */
|
/* $NetBSD: pmap.c,v 1.24 2003/07/19 08:20:22 simonb Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2001 Wasabi Systems, Inc.
|
* Copyright 2001 Wasabi Systems, Inc.
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.23 2003/07/15 02:54:43 lukem Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.24 2003/07/19 08:20:22 simonb Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/malloc.h>
|
#include <sys/malloc.h>
|
||||||
|
@ -204,13 +204,11 @@ pte_enter(struct pmap *pm, vaddr_t va, u_int pte)
|
||||||
int seg = STIDX(va);
|
int seg = STIDX(va);
|
||||||
int ptn = PTIDX(va);
|
int ptn = PTIDX(va);
|
||||||
u_int oldpte;
|
u_int oldpte;
|
||||||
paddr_t pa;
|
|
||||||
|
|
||||||
if (!pm->pm_ptbl[seg]) {
|
if (!pm->pm_ptbl[seg]) {
|
||||||
/* Don't allocate a page to clear a non-existent mapping. */
|
/* Don't allocate a page to clear a non-existent mapping. */
|
||||||
if (!pte) return (0);
|
if (!pte) return (0);
|
||||||
/* Allocate a page XXXX this will sleep! */
|
/* Allocate a page XXXX this will sleep! */
|
||||||
pa = 0;
|
|
||||||
pm->pm_ptbl[seg] =
|
pm->pm_ptbl[seg] =
|
||||||
(uint *)uvm_km_alloc1(kernel_map, PAGE_SIZE, 1);
|
(uint *)uvm_km_alloc1(kernel_map, PAGE_SIZE, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue