diff options
Diffstat (limited to 'sys/i386/linux/linux_machdep.c')
-rw-r--r-- | sys/i386/linux/linux_machdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c index 7ed4ba9..f52386d 100644 --- a/sys/i386/linux/linux_machdep.c +++ b/sys/i386/linux/linux_machdep.c @@ -612,7 +612,7 @@ linux_mmap_common(struct thread *td, struct l_mmap_argv *linux_args) */ if (! ((linux_args->flags & LINUX_MAP_SHARED) ^ (linux_args->flags & LINUX_MAP_PRIVATE))) - return EINVAL; + return (EINVAL); if (linux_args->flags & LINUX_MAP_SHARED) bsd_args.flags |= MAP_SHARED; @@ -711,16 +711,16 @@ linux_mmap_common(struct thread *td, struct l_mmap_argv *linux_args) */ if ((error = fget(td, linux_args->fd, &fp)) != 0) - return error; + return (error); if (fp->f_type != DTYPE_VNODE) { fdrop(fp, td); - return EINVAL; + return (EINVAL); } /* Linux mmap() just fails for O_WRONLY files */ if (! (fp->f_flag & FREAD)) { fdrop(fp, td); - return EACCES; + return (EACCES); } bsd_args.fd = linux_args->fd; |