From 459d4a2cc5e6111860f2c6a86117a230d98dd4e9 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 6 May 1999 18:44:42 +0000 Subject: Fix up a few easy 'assignment used as truth value' and 'suggest parens around && within ||' type warnings. I'm pretty sure I have not masked any problems here, I've committed real problem fixes seperately. --- sys/kern/vfs_aio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/kern/vfs_aio.c') diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index 577c499..d833bd6 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -13,7 +13,7 @@ * bad that happens because of using this software isn't the responsibility * of the author. This software is distributed AS-IS. * - * $Id: vfs_aio.c,v 1.45 1999/04/04 21:41:16 dt Exp $ + * $Id: vfs_aio.c,v 1.46 1999/04/28 01:04:28 luoqi Exp $ */ /* @@ -890,7 +890,8 @@ aio_newproc() struct proc *p, *np; p = &proc0; - if (error = fork1(p, RFPROC|RFMEM|RFNOWAIT)) + error = fork1(p, RFPROC|RFMEM|RFNOWAIT); + if (error) return error; np = pfind(p->p_retval[0]); cpu_set_fork_handler(np, aio_daemon, curproc); -- cgit v1.1