Skip to contentSkip to conversation

net: stmmac: dwmac-intel-plat: remove config data on error

PATCH Applied Pan Bian 2 participants 2 messages Jan 20, 2021 – Jan 23, 2021

Subsystems (4)
lore
Share & tools
lore

Pan Bian

author
#0 lore raw

PATCH 1/1 net: stmmac: dwmac-intel-plat: remove config data on error

Remove the config data when rate setting fails.

Fixes 9efc9b2b04c7 ("net: stmmac: Add dwmac-intel-plat for GBE driver")
---
 drivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c +2 -2
index 82b1c7a5a7a9..ba0e4d2b256a 100644
@@ -129,7 +129,7 @@ static int intel_eth_plat_probe(struct platform_device *pdev)
 				if (ret) {
 					dev_err(&pdev->dev,
 						"Failed to set tx_clk\n");
-					return ret;
+					goto err_remove_config_dt;
 				}
 			}
 		}
@@ -143,7 +143,7 @@ static int intel_eth_plat_probe(struct platform_device *pdev)
 			if (ret) {
 				dev_err(&pdev->dev,
 					"Failed to set clk_ptp_ref\n");
-				return ret;
+				goto err_remove_config_dt;
 			}
 		}
 	}
Signature · 8 lines
2.17.1



_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw
This patch was applied to netdev/net.git (refs/heads/master):

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

Quoted 7 lines · On Wed, 20 Jan 2021 03:07:44 -0800 you wrote:

Remove the config data when rate setting fails.

Fixes 9efc9b2b04c7 ("net: stmmac: Add dwmac-intel-plat for GBE driver")
---
 drivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Here is the summary with links:
- net: stmmac: dwmac-intel-plat: remove config data on error

    https://git.kernel.org/netdev/net/c/3765d86ffcd3

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html