aboutsummaryrefslogtreecommitdiffstats
path: root/main/xen/patch-gcc6-etherboot-igb_phy.c.patch
blob: 44beb4baa932adaed96327b86fc02f3728fcf563 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff -aur a/src/drivers/net/igb/igb_phy.c b/src/drivers/net/igb/igb_phy.c
--- a/src/drivers/net/igb/igb_phy.c	2016-05-12 19:53:45.063246296 +1000
+++ b/src/drivers/net/igb/igb_phy.c	2016-05-12 19:54:09.992692278 +1000
@@ -88,7 +88,7 @@
 
 	DEBUGFUNC("igb_get_phy_id");
 
-	if (!(phy->ops.read_reg))
+	if (!(phy->ops.read_reg)) {
 		goto out;
 
 		ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id);
@@ -103,6 +103,7 @@
 
 		phy->id |= (u32)(phy_id & PHY_REVISION_MASK);
 		phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK);
+	}
 
 out:
 	return ret_val;