From: Pavel Skripkin <hidden> Date: 2021-08-17 18:35:44
mii_ethtool_gset() does not return any errors. We can make it return
void to simplify error checking in drivers, that rely on return value
of this function.
Signed-off-by: Pavel Skripkin <redacted>
---
drivers/net/mii.c | 5 +----
include/linux/mii.h | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)
From: Pavel Skripkin <hidden> Date: 2021-08-17 18:35:45
Since mii_ethtool_gset() becomes void in previous patch we can omit
cheking return value of this function and make code more simple.
Signed-off-by: Pavel Skripkin <redacted>
---
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 8 +-------
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_phy.c | 4 +---
2 files changed, 2 insertions(+), 10 deletions(-)
@@ -1031,13 +1031,7 @@ static void pch_gbe_watchdog(struct timer_list *t)structethtool_cmdcmd={.cmd=ETHTOOL_GSET};netdev->tx_queue_len=adapter->tx_queue_len;/* mii library handles link maintenance tasks */-if(mii_ethtool_gset(&adapter->mii,&cmd)){-netdev_err(netdev,"ethtool get setting Error\n");-mod_timer(&adapter->watchdog_timer,-round_jiffies(jiffies+-PCH_GBE_WATCHDOG_PERIOD));-return;-}+mii_ethtool_gset(&adapter->mii,&cmd);hw->mac.link_speed=ethtool_cmd_speed(&cmd);hw->mac.link_duplex=cmd.duplex;/* Set the RGMII control. */
From: Jakub Kicinski <kuba@kernel.org> Date: 2021-08-18 00:39:09
On Tue, 17 Aug 2021 21:34:42 +0300 Pavel Skripkin wrote:
mii_ethtool_gset() does not return any errors. We can make it return
void to simplify error checking in drivers, that rely on return value
of this function.
Signed-off-by: Pavel Skripkin <redacted>
This breaks the build and therefore would be a nuisance in bisection.
Please squash the changes or invert the order.
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Date: 2021-08-18 08:50:25
On Tue, Aug 17, 2021 at 05:39:04PM -0700, Jakub Kicinski wrote:
On Tue, 17 Aug 2021 21:34:42 +0300 Pavel Skripkin wrote:
quoted
mii_ethtool_gset() does not return any errors. We can make it return
void to simplify error checking in drivers, that rely on return value
of this function.
Signed-off-by: Pavel Skripkin <redacted>
This breaks the build and therefore would be a nuisance in bisection.
Please squash the changes or invert the order.
Please invert the order. You will need slightly different justification for the
PCH GBE patch. Feel free to add my
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
to the PCH GBE one.
--
With Best Regards,
Andy Shevchenko
From: Pavel Skripkin <hidden> Date: 2021-08-18 14:23:02
mii_ethtool_gset() does not return any errors, so error handling can be
omitted to make code more simple.
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Pavel Skripkin <redacted>
---
Changes in v2:
inverted the order of patches
---
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 8 +-------
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_phy.c | 4 +---
2 files changed, 2 insertions(+), 10 deletions(-)
@@ -1031,13 +1031,7 @@ static void pch_gbe_watchdog(struct timer_list *t)structethtool_cmdcmd={.cmd=ETHTOOL_GSET};netdev->tx_queue_len=adapter->tx_queue_len;/* mii library handles link maintenance tasks */-if(mii_ethtool_gset(&adapter->mii,&cmd)){-netdev_err(netdev,"ethtool get setting Error\n");-mod_timer(&adapter->watchdog_timer,-round_jiffies(jiffies+-PCH_GBE_WATCHDOG_PERIOD));-return;-}+mii_ethtool_gset(&adapter->mii,&cmd);hw->mac.link_speed=ethtool_cmd_speed(&cmd);hw->mac.link_duplex=cmd.duplex;/* Set the RGMII control. */
From: Pavel Skripkin <hidden> Date: 2021-08-18 14:23:04
mii_ethtool_gset() does not return any errors. Since there is no users
of this function that rely on its return value, it can be
made void.
Signed-off-by: Pavel Skripkin <redacted>
---
Changes in v2:
inverted the order of patches
---
drivers/net/mii.c | 5 +----
include/linux/mii.h | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Date: 2021-08-18 14:59:38
On Wed, Aug 18, 2021 at 05:18:55PM +0300, Pavel Skripkin wrote:
mii_ethtool_gset() does not return any errors. Since there is no users
there are
quoted hunk
of this function that rely on its return value, it can be
made void.
Signed-off-by: Pavel Skripkin <redacted>
---
Changes in v2:
inverted the order of patches
---
drivers/net/mii.c | 5 +----
include/linux/mii.h | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)
From: Pavel Skripkin <hidden> Date: 2021-08-18 15:07:11
mii_ethtool_gset() does not return any errors, so error handling can be
omitted to make code more simple.
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Pavel Skripkin <redacted>
---
Changes in v3:
No changes
Changes in v2:
inverted the order of patches
---
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 8 +-------
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_phy.c | 4 +---
2 files changed, 2 insertions(+), 10 deletions(-)
@@ -1031,13 +1031,7 @@ static void pch_gbe_watchdog(struct timer_list *t)structethtool_cmdcmd={.cmd=ETHTOOL_GSET};netdev->tx_queue_len=adapter->tx_queue_len;/* mii library handles link maintenance tasks */-if(mii_ethtool_gset(&adapter->mii,&cmd)){-netdev_err(netdev,"ethtool get setting Error\n");-mod_timer(&adapter->watchdog_timer,-round_jiffies(jiffies+-PCH_GBE_WATCHDOG_PERIOD));-return;-}+mii_ethtool_gset(&adapter->mii,&cmd);hw->mac.link_speed=ethtool_cmd_speed(&cmd);hw->mac.link_duplex=cmd.duplex;/* Set the RGMII control. */
From: Pavel Skripkin <hidden> Date: 2021-08-18 15:07:19
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 <redacted>
---
Changes in v3:
1. removed empty comment line
2. there is -> there are
Changes in v2:
inverted the order of patches
---
drivers/net/mii.c | 6 +-----
include/linux/mii.h | 2 +-
2 files changed, 2 insertions(+), 6 deletions(-)
Hello:
This series was applied to netdev/net-next.git (refs/heads/master):
On Wed, 18 Aug 2021 18:06:30 +0300 you wrote:
mii_ethtool_gset() does not return any errors, so error handling can be
omitted to make code more simple.
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Pavel Skripkin <redacted>
---
[...]