shithub: riscv

Download patch

ref: 413ab7785f7bbbfbbfdffef964f90569708f6d48
parent: c11bed9f41ab5ad35fb83e6bba040ca7d757e031
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Sun Jan 15 09:31:53 EST 2012

eqlock: cleanup

--- a/sys/src/9/port/qlock.c
+++ b/sys/src/9/port/qlock.c
@@ -55,8 +55,7 @@
 	unlock(&q->use);
 	sched();
 	if(up->eql == 0){
-		if(up->notepending)
-			up->notepending = 0;
+		up->notepending = 0;
 		error(Eintr);
 	}
 }