summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/request.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/vfs/request.c')
-rw-r--r--src/kernel/vfs/request.c5
1 files changed, 1 insertions, 4 deletions
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)