[PATCH net-next] net: stmmac: clean up stmmac_reset()

patchwork-bot+netdevbpf at kernel.org patchwork-bot+netdevbpf at kernel.org
Thu Nov 13 08:10:08 PST 2025


Hello:

This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni at redhat.com>:

On Tue, 11 Nov 2025 11:26:39 +0000 you wrote:
> stmmac_reset() takes the stmmac_priv and an ioaddr. It has one call
> site, which passes the priv pointer, and dereferences priv for the
> ioaddr.
> 
> stmmac_reset() then checks whether priv is NULL. If it was, the caller
> would have oopsed. Remove the checks for NULL, and move the dereference
> for ioaddr into stmmac_reset().
> 
> [...]

Here is the summary with links:
  - [net-next] net: stmmac: clean up stmmac_reset()
    https://git.kernel.org/netdev/net-next/c/d0af55df5a78

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