Remove some variables that are set but never used.

This commit is contained in:
simonb 2001-11-06 07:20:37 +00:00
parent 86c9e7e6d2
commit cf63a6b052
2 changed files with 4 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: procfs_map.c,v 1.13 2001/06/02 18:09:25 chs Exp $ */
/* $NetBSD: procfs_map.c,v 1.14 2001/11/06 07:20:37 simonb Exp $ */
/*
* Copyright (c) 1993 Jan-Simon Pendry
@ -76,7 +76,7 @@ procfs_domap(struct proc *curp, struct proc *p, struct pfsnode *pfs,
struct uio *uio, int linuxmode)
{
int len;
int error, buf_full;
int error;
struct vm_map *map = &p->p_vmspace->vm_map;
struct vm_map_entry *entry;
char mebuffer[MEBUFFERSIZE];
@ -93,7 +93,6 @@ procfs_domap(struct proc *curp, struct proc *p, struct pfsnode *pfs,
return (0);
error = 0;
buf_full = 0;
if (map != &curproc->p_vmspace->vm_map)
vm_map_lock_read(map);
for (entry = map->header.next;

View File

@ -1,4 +1,4 @@
/* $NetBSD: procfs_vnops.c,v 1.83 2001/08/31 04:56:26 chs Exp $ */
/* $NetBSD: procfs_vnops.c,v 1.84 2001/11/06 07:20:37 simonb Exp $ */
/*
* Copyright (c) 1993 Jan-Simon Pendry
@ -235,7 +235,6 @@ procfs_open(v)
} */ *ap = v;
struct pfsnode *pfs = VTOPFS(ap->a_vp);
struct proc *p1, *p2;
int error;
p1 = ap->a_p; /* tracer */
p2 = PFIND(pfs->pfs_pid); /* traced */
@ -249,7 +248,7 @@ procfs_open(v)
((pfs->pfs_flags & O_EXCL) && (ap->a_mode & FWRITE)))
return (EBUSY);
if ((error = procfs_checkioperm(p1, p2)) != 0)
if (procfs_checkioperm(p1, p2) != 0)
return (EPERM);
if (ap->a_mode & FWRITE)