Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Remove curproc == NULL test.



details:   https://anonhg.NetBSD.org/src/rev/6cf072c777ad
branches:  trunk
changeset: 762226:6cf072c777ad
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Feb 17 19:02:50 2011 +0000

description:
Remove curproc == NULL test.

diffstat:

 sys/kern/sys_aio.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 49d192d8f201 -r 6cf072c777ad sys/kern/sys_aio.c
--- a/sys/kern/sys_aio.c        Thu Feb 17 18:55:31 2011 +0000
+++ b/sys/kern/sys_aio.c        Thu Feb 17 19:02:50 2011 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index