summaryrefslogtreecommitdiff
path: root/sys/src/9/port
diff options
context:
space:
mode:
authorJacob Moody <moody@posixcafe.org>2022-05-19 04:45:06 +0000
committerJacob Moody <moody@posixcafe.org>2022-05-19 04:45:06 +0000
commit316230f6258b96331039f5cc1b72307e4ce5827b (patch)
tree94e215e3cef6c59d3eac505802b78a828683e83a /sys/src/9/port
parent1da20fd5d8fc4c6677b52327e1e45e3279af42fd (diff)
kernel: remove dead case from devpipe
This code is checking the return of devwalk for a walk resulting in a clone of an open pipe file. However, devclone ensures that the chan we are cloning is not currently open.
Diffstat (limited to 'sys/src/9/port')
-rw-r--r--sys/src/9/port/devpipe.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/src/9/port/devpipe.c b/sys/src/9/port/devpipe.c
index 0b6f4fe98..60c6edd13 100644
--- a/sys/src/9/port/devpipe.c
+++ b/sys/src/9/port/devpipe.c
@@ -136,17 +136,6 @@ pipewalk(Chan *c, Chan *nc, char **name, int nname)
p = c->aux;
qlock(p);
p->ref++;
- if(c->flag & COPEN){
- print("channel open in pipewalk\n");
- switch(NETTYPE(c->qid.path)){
- case Qdata0:
- p->qref[0]++;
- break;
- case Qdata1:
- p->qref[1]++;
- break;
- }
- }
qunlock(p);
}
return wq;