libdraw: remove unneeded check (thanks BurnZeZ)

This commit is contained in:
cinap_lenrek 2015-09-20 21:52:47 +02:00
parent 12f7fc7a08
commit 95cfc30788

View file

@ -228,8 +228,6 @@ initdisplay(char *dev, char *win, void(*error)(Display*, char*))
werrstr("initdisplay: %s: %r", buf);
return nil;
}
if(ctlfd < 0)
goto Error1;
if((n=read(ctlfd, info, sizeof info)) < 12){
Error2:
close(ctlfd);