shithub: riscv

Download patch

ref: 6e630a2d1f6a592d67f3ee27c251cb3bded11e8f
parent: 29ca49ca38340835a86ab2862445e4cef673aa5c
author: cinap_lenrek <[email protected]>
date: Wed Dec 5 19:31:25 EST 2012

nusb/ether: remove debug prints, cleanup

--- a/sys/src/cmd/nusb/ether/asix.c
+++ b/sys/src/cmd/nusb/ether/asix.c
@@ -274,11 +274,9 @@
 	int gpio;
 	int ee17;
 
-	fprint(2, "%s: setting up A88178\n", argv0);
 	gpio = getgpio(d);
 	if(gpio < 0)
 		return -1;
-	fprint(2, "%s: gpio sts %#x\n", argv0, gpio);
 	asixset(d, Cwena, 0);
 	ee17 = eepromread(d, 0x0017);
 	asixset(d, Cwdis, 0);
--- a/sys/src/cmd/nusb/ether/cdc.c
+++ b/sys/src/cmd/nusb/ether/cdc.c
@@ -61,7 +61,6 @@
 
 					epread = cdcread;
 					epwrite = cdcwrite;
-
 					return 0;
 				}
 			}
--- a/sys/src/cmd/nusb/ether/smsc.c
+++ b/sys/src/cmd/nusb/ether/smsc.c
@@ -225,7 +225,6 @@
 	n = hd >> 16;
 	m = (n + 4 + 3) & ~3;
 	if(n < 6 || m > nbin){
-		werrstr("frame length");
 		nbin = 0;
 		return 0;
 	}