Commit 13da93d4 authored by Doug Maxey's avatar Doug Maxey Committed by David S. Miller

ehea: fix ethtool checkpatch complaints

Cc: Jan-Bernd Themann <themann@de.ibm.com>
Signed-off-by: default avatarDoug Maxey <dwm@austin.ibm.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c6fa0b03
...@@ -40,7 +40,7 @@ static int ehea_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) ...@@ -40,7 +40,7 @@ static int ehea_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
return ret; return ret;
if (netif_carrier_ok(dev)) { if (netif_carrier_ok(dev)) {
switch(port->port_speed) { switch (port->port_speed) {
case EHEA_SPEED_10M: cmd->speed = SPEED_10; break; case EHEA_SPEED_10M: cmd->speed = SPEED_10; break;
case EHEA_SPEED_100M: cmd->speed = SPEED_100; break; case EHEA_SPEED_100M: cmd->speed = SPEED_100; break;
case EHEA_SPEED_1G: cmd->speed = SPEED_1000; break; 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,7 +78,7 @@ static int ehea_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)
goto doit; goto doit;
} }
switch(cmd->speed) { switch (cmd->speed) {
case SPEED_10: case SPEED_10:
if (cmd->duplex == DUPLEX_FULL) if (cmd->duplex == DUPLEX_FULL)
sp = H_SPEED_10M_F; sp = H_SPEED_10M_F;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment