aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dc
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2005-12-05 12:32:20 +0000
committerMarius Strobl <marius@FreeBSD.org>2005-12-05 12:32:20 +0000
commit802cab03301817c260e733eadc53fceee9fa8170 (patch)
tree692f8c140d842ecfe46d285630f5a8d3b2f92be2 /sys/dev/dc
parent342ed5d94898694d5ff3b5648cdc247d07dfad16 (diff)
Notes
Diffstat (limited to 'sys/dev/dc')
-rw-r--r--sys/dev/dc/if_dc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c
index 91d08d38af8b..bf1d86d8a621 100644
--- a/sys/dev/dc/if_dc.c
+++ b/sys/dev/dc/if_dc.c
@@ -2064,12 +2064,9 @@ dc_attach(device_t dev)
#ifdef __sparc64__
/*
* If this is an onboard dc(4) the station address read from
- * the EEPROM is all zero and we have to get it from the fcode.
+ * the EEPROM is all zero and we have to get it from the FCode.
*/
- for (i = 0; i < (ETHER_ADDR_LEN+3)/4; i++)
- if (eaddr[i] != 0)
- break;
- if (i >= (ETHER_ADDR_LEN+3)/4)
+ if (eaddr[0] == 0 && (eaddr[1] & ~0xffff) == 0)
OF_getetheraddr(dev, (caddr_t)&eaddr);
#endif
break;