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:
parent
5f49f8ac9c
commit
9e414386d4
1 changed files with 0 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue