diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-08-27 23:39:47 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-08-27 23:39:47 +0000 |
commit | 8851ba77a560521840f40bdbe1615ee160b4084e (patch) | |
tree | 77082ac04b8d863c2cf37684fc880cbdbb46058b /sys/nfs/nfs_aiod.c | |
parent | eb829b5161018a1760bb5cb088700543403224b6 (diff) |
Garbage collect two variables that where set but unused.
Tiny spacing nit.
Fix a typo, pointed out by miod@.
Diffstat (limited to 'sys/nfs/nfs_aiod.c')
-rw-r--r-- | sys/nfs/nfs_aiod.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/nfs/nfs_aiod.c b/sys/nfs/nfs_aiod.c index 937fa44d36d..3a9451b021d 100644 --- a/sys/nfs/nfs_aiod.c +++ b/sys/nfs/nfs_aiod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_aiod.c,v 1.3 2009/08/27 23:26:56 thib Exp $ */ +/* $OpenBSD: nfs_aiod.c,v 1.4 2009/08/27 23:39:46 thib Exp $ */ /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. @@ -74,10 +74,8 @@ nfs_aiod(void *arg) struct nfsmount *nmp; struct proc *p; struct buf *bp; - int error; p = (struct proc *)arg; - error = 0; aiod = malloc(sizeof(*aiod), M_TEMP, M_WAITOK|M_ZERO); mtx_enter(&nfs_aiodl_mtx); @@ -102,7 +100,6 @@ nfs_aiod(void *arg) loop: /* Loop around until SIGKILL */ - if (aiod->nad_flags & NFSAIOD_WAKEUP) { mtx_enter(&nfs_aiodl_mtx); LIST_INSERT_HEAD(&nfs_aiods_idle, aiod, nad_idle); @@ -161,7 +158,7 @@ out1: nfs_aiodbufqmax = max((bcstats.numbufs / 4) / nfs_numaiods, 64); else nfs_aiodbufqmax = 0; - kthread_exit(error); + kthread_exit(0); } int @@ -169,12 +166,11 @@ nfs_set_naiod(int howmany) { struct nfs_aiod *aiod; struct proc *p; - int want, error, dolock; + int want, error; KASSERT(howmany >= 0); error = 0; - dolock = 1; if (nfs_numaiods == -1) nfs_numaiods = 0; |