Module Name: src Committed By: matt Date: Thu Feb 17 19:02:51 UTC 2011
Modified Files: src/sys/kern: sys_aio.c Log Message: Remove curproc == NULL test. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/kern/sys_aio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/sys_aio.c diff -u src/sys/kern/sys_aio.c:1.36 src/sys/kern/sys_aio.c:1.37 --- src/sys/kern/sys_aio.c:1.36 Fri Dec 17 22:05:36 2010 +++ src/sys/kern/sys_aio.c Thu Feb 17 19:02:50 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: sys_aio.c,v 1.36 2010/12/17 22:05:36 yamt Exp $ */ +/* $NetBSD: sys_aio.c,v 1.37 2011/02/17 19:02:50 matt Exp $ */ /* * Copyright (c) 2007 Mindaugas Rasiukevicius <rmind at NetBSD org> @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sys_aio.c,v 1.36 2010/12/17 22:05:36 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sys_aio.c,v 1.37 2011/02/17 19:02:50 matt Exp $"); #ifdef _KERNEL_OPT #include "opt_ddb.h" @@ -1149,7 +1149,7 @@ void aio_print_jobs(void (*pr)(const char *, ...)) { - struct proc *p = (curlwp == NULL ? NULL : curlwp->l_proc); + struct proc *p = curlwp->l_proc; struct aioproc *aio; struct aio_job *a_job; struct aiocb *aiocbp;