summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r--src/kernel/syscalls.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c
index 343f45c..de53062 100644
--- a/src/kernel/syscalls.c
+++ b/src/kernel/syscalls.c
@@ -256,9 +256,7 @@ long _sys_close(hid_t hid) {
hid_t _sys_fs_wait(char __user *buf, long max_len, struct ufs_request __user *res) {
VfsBackend *backend = proc_cur->controlled;
- // TODO can be used to tell if you're init
- if (!backend) SYSCALL_RETURN(-1);
- if (backend->usehcnt == 0) {
+ if (!backend || backend->usehcnt == 0) {
/* nothing on the other end. EPIPE seems fitting */
SYSCALL_RETURN(-EPIPE);
}