aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-10 02:34:47 -0400
committerIan Moffett <ian@osmora.org>2024-04-10 02:34:47 -0400
commit0b791845261095186c70cd3ce7f819e528c289c8 (patch)
tree59e7a098b6fb65cebff2089751632bbf65b8b5c1 /sys/kern
parented5c170d50b218d5570bea21933a69caf374d8bf (diff)
kernel: filedesc: Cleanup whitespace
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_filedesc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_filedesc.c b/sys/kern/kern_filedesc.c
index abea45b..4eab0ae 100644
--- a/sys/kern/kern_filedesc.c
+++ b/sys/kern/kern_filedesc.c
@@ -448,7 +448,6 @@ sys_read(struct syscall_args *args)
}
kbuf = dynalloc(args->arg2);
-
if (kbuf == NULL) {
return -ENOMEM;
}
@@ -462,10 +461,10 @@ sys_read(struct syscall_args *args)
dynfree(kbuf);
return bytes_read;
}
-
if (copyout(kbuf, args->arg1, bytes_read) != 0) {
invalid_uaddr(args->arg1);
}
+
dynfree(kbuf);
return bytes_read;
}