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.
This commit is contained in:
Jacob Moody 2022-05-19 04:45:06 +00:00
parent 1da20fd5d8
commit 316230f625

View file

@ -136,17 +136,6 @@ pipewalk(Chan *c, Chan *nc, char **name, int nname)
p = c->aux; p = c->aux;
qlock(p); qlock(p);
p->ref++; 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); qunlock(p);
} }
return wq; return wq;