shithub: riscv

Download patch

ref: 1fdee02884be86fb76a2c551ab61997f7a8ddef5
parent: bbbfbe3dc41004b98531094a9fedacacbc897085
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Mon May 23 15:30:17 EDT 2011

aux/vga/pci.c: remove useless check

--- a/sys/src/cmd/aux/vga/pci.c
+++ b/sys/src/cmd/aux/vga/pci.c
@@ -23,8 +23,6 @@
 			return;
 	n = dirreadall(fd, &d);
 	close(fd);
-	if(n < 0)
-		return;
 	
 	for(i=0; i<n; i++) {
 		if(strstr(d[i].name, "ctl") == nil)