summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/asix/ax88796c_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/asix/ax88796c_main.c b/drivers/net/ethernet/asix/ax88796c_main.c
index 91fa0499ea6a..3f25fafd422e 100644
--- a/drivers/net/ethernet/asix/ax88796c_main.c
+++ b/drivers/net/ethernet/asix/ax88796c_main.c
@@ -693,6 +693,7 @@ static void ax88796c_set_mac(struct ax88796c_device *ax_local)
switch (ax_local->speed) {
case SPEED_100:
maccr |= MACCR_SPEED_100;
+ break;
case SPEED_10:
case SPEED_UNKNOWN:
break;
@@ -703,6 +704,7 @@ static void ax88796c_set_mac(struct ax88796c_device *ax_local)
switch (ax_local->duplex) {
case DUPLEX_FULL:
maccr |= MACCR_SPEED_100;
+ break;
case DUPLEX_HALF:
case DUPLEX_UNKNOWN:
break;