summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_aio.c
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-01-27 04:14:16 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-01-27 04:14:16 +0000
commit7a2375b9e421a957a0cd6b6321df5a98192c0b61 (patch)
tree3e74d3b0aef81bdd2f6481c5f6c7ac64be2f5161 /sys/kern/vfs_aio.c
parent6ddca501743acc35a5eb7064fa82aa0b4a11ab82 (diff)
downloadFreeBSD-src-7a2375b9e421a957a0cd6b6321df5a98192c0b61.zip
FreeBSD-src-7a2375b9e421a957a0cd6b6321df5a98192c0b61.tar.gz
return final error code in aio_return rather than a hardcoded 0.
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r--sys/kern/vfs_aio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index 52fe545..d1ed550 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -1547,7 +1547,6 @@ aio_return(struct thread *td, struct aio_return_args *uap)
PROC_UNLOCK(p);
suword(&uaiocb->_aiocb_private.error, error);
suword(&uaiocb->_aiocb_private.status, status);
- error = 0;
} else {
error = EINVAL;
PROC_UNLOCK(p);
OpenPOWER on IntegriCloud