提交 925638a2 编写于 作者: R Raju Lakkaraju 提交者: 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: NRaju Lakkaraju <Raju.Lakkaraju@microchip.com>
Reviewed-by: NHoratiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: NJakub Kicinski <kuba@kernel.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册