In procfs_domem() the addr variable is only needed if PMAP_NEED_PROCWR is

defined.
This commit is contained in:
simonb 2001-11-06 07:20:08 +00:00
parent 9b90ed2100
commit 86c9e7e6d2

View File

@ -1,4 +1,4 @@
/* $NetBSD: procfs_mem.c,v 1.27 2000/11/24 18:58:37 chs Exp $ */
/* $NetBSD: procfs_mem.c,v 1.28 2001/11/06 07:20:08 simonb Exp $ */
/*
* Copyright (c) 1993 Jan-Simon Pendry
@ -74,14 +74,18 @@ procfs_domem(curp, p, pfs, uio)
int error;
size_t len;
#ifdef PMAP_NEED_PROCWR
vaddr_t addr;
#endif
len = uio->uio_resid;
if (len == 0)
return (0);
#ifdef PMAP_NEED_PROCWR
addr = uio->uio_offset;
#endif
if ((error = procfs_checkioperm(curp, p)) != 0)
return (error);