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 committed by xfnw
parent 5f49f8ac9c
commit 9e414386d4

View file

@ -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;