aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ehea
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ehea')
-rw-r--r--drivers/net/ehea/ehea_ethtool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ehea/ehea_ethtool.c b/drivers/net/ehea/ehea_ethtool.c
index 679f40ee9572..d76885223366 100644
--- a/drivers/net/ehea/ehea_ethtool.c
+++ b/drivers/net/ehea/ehea_ethtool.c
@@ -40,7 +40,7 @@ static int ehea_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
40 return ret; 40 return ret;
41 41
42 if (netif_carrier_ok(dev)) { 42 if (netif_carrier_ok(dev)) {
43 switch(port->port_speed) { 43 switch (port->port_speed) {
44 case EHEA_SPEED_10M: cmd->speed = SPEED_10; break; 44 case EHEA_SPEED_10M: cmd->speed = SPEED_10; break;
45 case EHEA_SPEED_100M: cmd->speed = SPEED_100; break; 45 case EHEA_SPEED_100M: cmd->speed = SPEED_100; break;
46 case EHEA_SPEED_1G: cmd->speed = SPEED_1000; break; 46 case EHEA_SPEED_1G: cmd->speed = SPEED_1000; break;
@@ -78,7 +78,7 @@ static int ehea_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)
78 goto doit; 78 goto doit;
79 } 79 }
80 80
81 switch(cmd->speed) { 81 switch (cmd->speed) {
82 case SPEED_10: 82 case SPEED_10:
83 if (cmd->duplex == DUPLEX_FULL) 83 if (cmd->duplex == DUPLEX_FULL)
84 sp = H_SPEED_10M_F; 84 sp = H_SPEED_10M_F;