Minor code improvement to uiomove()

This commit is contained in:
David Greenman 1995-02-12 09:11:47 +00:00
parent bcbd38050e
commit 4aa2b6cf22
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6324

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_subr.c 8.3 (Berkeley) 1/21/94
* $Id$
* $Id: kern_subr.c,v 1.3 1994/08/02 07:42:14 davidg Exp $
*/
#include <sys/param.h>
@ -53,7 +53,7 @@ uiomove(cp, n, uio)
{
register struct iovec *iov;
u_int cnt;
int error = 0;
int error;
#ifdef DIAGNOSTIC
if (uio->uio_rw != UIO_READ && uio->uio_rw != UIO_WRITE)
@ -71,6 +71,7 @@ uiomove(cp, n, uio)
}
if (cnt > n)
cnt = n;
switch (uio->uio_segflg) {
case UIO_USERSPACE:
@ -97,7 +98,7 @@ uiomove(cp, n, uio)
cp += cnt;
n -= cnt;
}
return (error);
return (0);
}
/*