return final error code in aio_return rather than a hardcoded 0.

This commit is contained in:
David Xu 2006-01-27 04:14:16 +00:00
parent 3d425b66e4
commit 03d66b36c7

View File

@ -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);