git: c4b652b7e629 - stable/12 - cstyle cleanup for i386_copy.c
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Oct 2021 06:10:27 UTC
The branch stable/12 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=c4b652b7e629207b39e53cafbc16d691233dd434 commit c4b652b7e629207b39e53cafbc16d691233dd434 Author: Toomas Soome <tsoome@FreeBSD.org> AuthorDate: 2019-11-08 12:19:03 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> CommitDate: 2021-10-08 02:41:11 +0000 cstyle cleanup for i386_copy.c No functional changes are intended. (cherry picked from commit 1113c41fef7b1b0ff02d816908f553f4699d9bd1) --- stand/i386/libi386/i386_copy.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/stand/i386/libi386/i386_copy.c b/stand/i386/libi386/i386_copy.c index c46e2b118976..a1e7c734ebf3 100644 --- a/stand/i386/libi386/i386_copy.c +++ b/stand/i386/libi386/i386_copy.c @@ -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(readin_handle_t 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 (VECTX_READ(fd, PTOV(dest), len)); + return (VECTX_READ(fd, PTOV(dest), len)); }