kbdfs: simplfy
This commit is contained in:
parent
77481acf05
commit
1da8475093
1 changed files with 5 additions and 2 deletions
|
@ -617,15 +617,18 @@ reqproc(void *aux)
|
|||
qq = &q;
|
||||
|
||||
ac = aux;
|
||||
a[AREQ].op = CHANRCV;
|
||||
a[AREQ].c = ac[0]; /* chan(Req*) */
|
||||
a[AREQ].v = &r;
|
||||
|
||||
a[ASTR].c = ac[1]; /* chan(char*) */
|
||||
a[ASTR].v = &s;
|
||||
|
||||
a[AEND].op = CHANEND;
|
||||
|
||||
for(;;){
|
||||
a[AREQ].op = CHANRCV;
|
||||
a[ASTR].op = (q != nil && s == nil) ? CHANRCV : CHANNOP;
|
||||
a[ASTR].op = s ? CHANNOP : CHANRCV;
|
||||
|
||||
switch(alt(a)){
|
||||
case AREQ:
|
||||
if(r->ifcall.type == Tflush){
|
||||
|
|
Loading…
Reference in a new issue