summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/nxge/nxge_mac.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/io/nxge/nxge_mac.c')
-rw-r--r--usr/src/uts/common/io/nxge/nxge_mac.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/usr/src/uts/common/io/nxge/nxge_mac.c b/usr/src/uts/common/io/nxge/nxge_mac.c
index d08c6d269f..f1cd6511c4 100644
--- a/usr/src/uts/common/io/nxge/nxge_mac.c
+++ b/usr/src/uts/common/io/nxge/nxge_mac.c
@@ -8475,10 +8475,16 @@ nxge_bcm5464_link_led_off(p_nxge_t nxgep)
NXGE_DEBUG_MSG((nxgep, MIF_CTL, "==> nxge_bcm5464_link_led_off"));
- if (nxgep->nxge_hw_p->platform_type == P_NEPTUNE_MARAMBA_P1) {
+ switch (nxgep->nxge_hw_p->platform_type) {
+ case P_NEPTUNE_MARAMBA_P1:
xcvr_portn = MARAMBA_P1_CLAUSE22_PORT_ADDR_BASE;
- } else if (nxgep->nxge_hw_p->platform_type == P_NEPTUNE_MARAMBA_P0) {
+ break;
+ case P_NEPTUNE_MARAMBA_P0:
xcvr_portn = MARAMBA_P0_CLAUSE22_PORT_ADDR_BASE;
+ break;
+ default:
+ xcvr_portn = 0;
+ break;
}
/*
* For Altas 4-1G copper, Xcvr port numbers are