cstyle cleanup for i386_copy.c

No functional changes are intended.
This commit is contained in:
Toomas Soome 2019-11-08 12:19:03 +00:00
parent 75ad2fd059
commit 1113c41fef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354535

View File

@ -40,25 +40,25 @@ __FBSDID("$FreeBSD$");
ssize_t
i386_copyin(const void *src, vm_offset_t dest, const size_t len)
{
if (dest + len >= memtop) {
errno = EFBIG;
return(-1);
}
if (dest + len >= memtop) {
errno = EFBIG;
return (-1);
}
bcopy(src, PTOV(dest), len);
return(len);
bcopy(src, PTOV(dest), len);
return (len);
}
ssize_t
i386_copyout(const vm_offset_t src, void *dest, const size_t len)
{
if (src + len >= memtop) {
errno = EFBIG;
return(-1);
}
bcopy(PTOV(src), dest, len);
return(len);
if (src + len >= memtop) {
errno = EFBIG;
return (-1);
}
bcopy(PTOV(src), dest, len);
return (len);
}
@ -66,10 +66,10 @@ ssize_t
i386_readin(const int fd, vm_offset_t dest, const size_t len)
{
if (dest + len >= memtop_copyin) {
errno = EFBIG;
return(-1);
}
if (dest + len >= memtop_copyin) {
errno = EFBIG;
return (-1);
}
return (read(fd, PTOV(dest), len));
return (read(fd, PTOV(dest), len));
}