Commit 925638a2 authored by Raju Lakkaraju's avatar Raju Lakkaraju Committed by Jakub Kicinski

net: lan743x: Remove unused argument in lan743x_common_regs( )

Remove the unused argument (i.e. struct ethtool_regs *regs) in
lan743x_common_regs( ) function arguments.
Signed-off-by: default avatarRaju Lakkaraju <Raju.Lakkaraju@microchip.com>
Reviewed-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 0cb9ed57
...@@ -1190,9 +1190,7 @@ static int lan743x_ethtool_set_wol(struct net_device *netdev, ...@@ -1190,9 +1190,7 @@ static int lan743x_ethtool_set_wol(struct net_device *netdev,
} }
#endif /* CONFIG_PM */ #endif /* CONFIG_PM */
static void lan743x_common_regs(struct net_device *dev, static void lan743x_common_regs(struct net_device *dev, void *p)
struct ethtool_regs *regs, void *p)
{ {
struct lan743x_adapter *adapter = netdev_priv(dev); struct lan743x_adapter *adapter = netdev_priv(dev);
u32 *rb = p; u32 *rb = p;
...@@ -1230,7 +1228,7 @@ static void lan743x_get_regs(struct net_device *dev, ...@@ -1230,7 +1228,7 @@ static void lan743x_get_regs(struct net_device *dev,
{ {
regs->version = LAN743X_ETH_REG_VERSION; regs->version = LAN743X_ETH_REG_VERSION;
lan743x_common_regs(dev, regs, p); lan743x_common_regs(dev, p);
} }
static void lan743x_get_pauseparam(struct net_device *dev, static void lan743x_get_pauseparam(struct net_device *dev,
......
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