shithub: riscv

Download patch

ref: 95cfc307881d044b0fddd6abf9c0b6b65e780832
parent: 12f7fc7a0874c568e147627ca043eff33be6188e
author: cinap_lenrek <[email protected]>
date: Sun Sep 20 17:52:47 EDT 2015

libdraw: remove unneeded check (thanks BurnZeZ)

--- a/sys/src/libdraw/init.c
+++ b/sys/src/libdraw/init.c
@@ -228,8 +228,6 @@
 		werrstr("initdisplay: %s: %r", buf);
 		return nil;
 	}
-	if(ctlfd < 0)
-		goto Error1;
 	if((n=read(ctlfd, info, sizeof info)) < 12){
     Error2:
 		close(ctlfd);