summaryrefslogtreecommitdiff
path: root/pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'pipe.c')
-rw-r--r--pipe.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/pipe.c b/pipe.c
index 8a580f9..7f18e98 100644
--- a/pipe.c
+++ b/pipe.c
@@ -47,14 +47,10 @@ pipealloc(struct file **f0, struct file **f1)
bad:
if(p)
kfree((char*)p, PAGE);
- if(*f0){
- (*f0)->type = FD_NONE;
+ if(*f0)
fileclose(*f0);
- }
- if(*f1){
- (*f1)->type = FD_NONE;
+ if(*f1)
fileclose(*f1);
- }
return -1;
}