net: use ethtool_cmd_speed_set helper to set ethtool speed value
Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
537fae0101
commit
d4f3cd49d2
@@ -298,7 +298,6 @@ static int ntb_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
|
||||
{
|
||||
cmd->supported = SUPPORTED_Backplane;
|
||||
cmd->advertising = ADVERTISED_Backplane;
|
||||
cmd->speed = SPEED_UNKNOWN;
|
||||
ethtool_cmd_speed_set(cmd, SPEED_UNKNOWN);
|
||||
cmd->duplex = DUPLEX_FULL;
|
||||
cmd->port = PORT_OTHER;
|
||||
|
Reference in New Issue
Block a user