[PATCH net-next] net: stmmac: minor cleanups to stmmac_bus_clks_config()
patchwork-bot+netdevbpf at kernel.org
patchwork-bot+netdevbpf at kernel.org
Thu Aug 28 17:00:22 PDT 2025
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba at kernel.org>:
On Wed, 27 Aug 2025 09:54:51 +0100 you wrote:
> stmmac_bus_clks_config() doesn't need to repeatedly on dereference
> priv->plat as this remains the same throughout this function. Not only
> does this detract from the function's readability, but it could cause
> the value to be reloaded each time. Use a local variable.
>
> Also, the final return can simply return zero, and we can dispense
> with the initialiser for 'ret'.
>
> [...]
Here is the summary with links:
- [net-next] net: stmmac: minor cleanups to stmmac_bus_clks_config()
https://git.kernel.org/netdev/net-next/c/2584ed250a37
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the linux-arm-kernel
mailing list