From 3e7d1acffd81175246fab1ed8be30569c9cd3289 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 10 Apr 2022 15:13:49 +0200 Subject: kernel: idle process --- src/kernel/vfs/request.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/kernel/vfs/request.c') diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index 5b65e52..e8bf147 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -7,7 +7,6 @@ int vfs_request_create(struct vfs_request req_) { struct vfs_request *req; - int ret; process_current->state = PS_WAITS4FS; process_current->waits4fs.queue_next = NULL; @@ -20,9 +19,7 @@ int vfs_request_create(struct vfs_request req_) { switch (req->backend->type) { case VFS_BACK_ROOT: - ret = vfs_root_handler(req); - ret = vfs_request_finish(req, ret); - return ret; + return vfs_root_handler(req); case VFS_BACK_USER: if (req->backend->handler && req->backend->handler->state == PS_WAITS4REQUEST) -- cgit v1.2.3