diff options
author | Pavel Skripkin <paskripkin@gmail.com> | 2021-08-18 17:07:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-19 14:06:53 +0200 |
commit | 2274af1d60fee3fe35f341fc5d4dbf99ab78fb2f (patch) | |
tree | 87aa91869ca4733514fa73638fc91d8da2618b39 /drivers/net/mii.c | |
parent | net: pch_gbe: remove mii_ethtool_gset() error handling (diff) | |
download | linux-2274af1d60fee3fe35f341fc5d4dbf99ab78fb2f.tar.xz linux-2274af1d60fee3fe35f341fc5d4dbf99ab78fb2f.zip |
net: mii: make mii_ethtool_gset() return void
mii_ethtool_gset() does not return any errors. Since there are no users
of this function that rely on its return value, it can be
made void.
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mii.c')
-rw-r--r-- | drivers/net/mii.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/mii.c b/drivers/net/mii.c index 779c3a96dba7..22680f47385d 100644 --- a/drivers/net/mii.c +++ b/drivers/net/mii.c @@ -49,10 +49,8 @@ static u32 mii_get_an(struct mii_if_info *mii, u16 addr) * * The @ecmd parameter is expected to have been cleared before calling * mii_ethtool_gset(). - * - * Returns 0 for success, negative on error. */ -int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd) +void mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd) { struct net_device *dev = mii->dev; u16 bmcr, bmsr, ctrl1000 = 0, stat1000 = 0; @@ -131,8 +129,6 @@ int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd) mii->full_duplex = ecmd->duplex; /* ignore maxtxpkt, maxrxpkt for now */ - - return 0; } /** |