shithub: riscv

Download patch

ref: b821a768241d35d23f4f2abe4616f822cc9f3775
parent: 6cadd03bbeace1c256ba875c2e6a877f924877cd
author: cinap_lenrek <[email protected]>
date: Mon Dec 31 16:50:08 EST 2012

ether82563: fix phyerrata()

--- a/sys/src/9/pc/ether82563.c
+++ b/sys/src/9/pc/ether82563.c
@@ -1299,13 +1299,13 @@
 static void
 phyerrata(Ether *e, Ctlr *c)
 {
-	if(e->mbps == 0)
+	if(e->mbps == 0){
 		if(c->phyerrata == 0){
 			c->phyerrata++;
 			phywrite(c, 1, Phyprst, Prst);	/* try a port reset */
 			print("%s: phy port reset\n", cname(c));
 		}
-	else
+	}else
 		c->phyerrata = 0;
 }