diff options
author | yuval.shaia@oracle.com <yuval.shaia@oracle.com> | 2017-06-04 20:24:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-05 11:00:43 -0400 |
commit | 697dae1ee1e320bb6b20c02f0259a0fa3a768b72 (patch) | |
tree | 109b414e1f08af5f5a798eb839b4f61a0d25828f /drivers/net | |
parent | 82c01a84d5a9bd3b9347bb03eed2f05bbccef933 (diff) | |
download | linux-697dae1ee1e320bb6b20c02f0259a0fa3a768b72.tar.bz2 |
net/3com: Make el3_netdev_get_ecmd return void
Make return value void since function never returns meaningfull value.
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/3com/3c509.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/ethernet/3com/3c509.c b/drivers/net/ethernet/3com/3c509.c index db8592d412ab..f66c9710cb81 100644 --- a/drivers/net/ethernet/3com/3c509.c +++ b/drivers/net/ethernet/3com/3c509.c @@ -1039,7 +1039,7 @@ el3_link_ok(struct net_device *dev) return tmp & (1<<11); } -static int +static void el3_netdev_get_ecmd(struct net_device *dev, struct ethtool_link_ksettings *cmd) { u16 tmp; @@ -1082,7 +1082,6 @@ el3_netdev_get_ecmd(struct net_device *dev, struct ethtool_link_ksettings *cmd) supported); cmd->base.speed = SPEED_10; EL3WINDOW(1); - return 0; } static int @@ -1151,12 +1150,11 @@ static int el3_get_link_ksettings(struct net_device *dev, struct ethtool_link_ksettings *cmd) { struct el3_private *lp = netdev_priv(dev); - int ret; spin_lock_irq(&lp->lock); - ret = el3_netdev_get_ecmd(dev, cmd); + el3_netdev_get_ecmd(dev, cmd); spin_unlock_irq(&lp->lock); - return ret; + return 0; } static int el3_set_link_ksettings(struct net_device *dev, |