Because "paddr_t" is not a pointer type initialize "pa" to 0 and not NULL.
This commit is contained in:
parent
bcb61538fb
commit
ce2c46e673
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.c,v 1.109 2004/09/23 21:10:31 tron Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.110 2004/09/23 21:30:36 tron Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -107,7 +107,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.109 2004/09/23 21:10:31 tron Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.110 2004/09/23 21:30:36 tron Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -1563,7 +1563,7 @@ pmap_extract(pmap, va, pap)
|
|||
paddr_t *pap;
|
||||
{
|
||||
boolean_t rv = FALSE;
|
||||
paddr_t pa = NULL;
|
||||
paddr_t pa = 0;
|
||||
u_int pte;
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
Loading…
Reference in New Issue