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
1da20fd5d8
commit
316230f625
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;
|
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;
|
||||||
|
|
Loading…
Reference in a new issue