2023-10-20 09:16:53

by Su Hui

[permalink] [raw]
Subject: [PATCH] net: lan966x: remove useless code in lan966x_xtr_irq_handler

'err' is useless after break, remove this to save space and
be more clear.

Signed-off-by: Su Hui <[email protected]>
---
drivers/net/ethernet/microchip/lan966x/lan966x_main.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
index 0d6e79af2410..7861defafb85 100644
--- a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
+++ b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
@@ -671,7 +671,6 @@ static irqreturn_t lan966x_xtr_irq_handler(int irq, void *args)
skb = netdev_alloc_skb(dev, len);
if (unlikely(!skb)) {
netdev_err(dev, "Unable to allocate sk_buff\n");
- err = -ENOMEM;
break;
}
buf_len = len - ETH_FCS_LEN;
--
2.30.2


2023-10-23 09:01:11

by patchwork-bot+netdevbpf

[permalink] [raw]
Subject: Re: [PATCH] net: lan966x: remove useless code in lan966x_xtr_irq_handler

Hello:

This patch was applied to netdev/net-next.git (main)
by David S. Miller <[email protected]>:

On Fri, 20 Oct 2023 17:16:26 +0800 you wrote:
> 'err' is useless after break, remove this to save space and
> be more clear.
>
> Signed-off-by: Su Hui <[email protected]>
> ---
> drivers/net/ethernet/microchip/lan966x/lan966x_main.c | 1 -
> 1 file changed, 1 deletion(-)

Here is the summary with links:
- net: lan966x: remove useless code in lan966x_xtr_irq_handler
https://git.kernel.org/netdev/net-next/c/6e7ce2d71bb9

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