# Re: \[PATCH net-next\] net: lan966x: cleanup error handling in lan966x\_fdma\_rx\_alloc\_page\_pool()

- From: patchwork-bot+netdevbpf@kernel.org
- Date: 2026-05-25 20:00:06 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/05/17028200
- Thread: https://ratatoskr.run/netdev/2026/05/17014454/t.md

```text
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski [ref]:

On Thu, 21 May 2026 15:49:36 +0300 you wrote:
> This code works, but there are a few things to tidy up:
> 1. No need to an unlikely() because IS_ERR() already has an unlikely()
>    built in.
> 2. No need to use PTR_ERR_OR_ZERO() because it's not an error pointer.
> 3. Use the returned error code directly instead of using groveling in
>    rx->page_pool to find it.
> 
> [...]

Here is the summary with links:
  - [net-next] net: lan966x: cleanup error handling in lan966x_fdma_rx_alloc_page_pool()
    https://git.kernel.org/netdev/net-next/c/640656c30a6a

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


```
