Message ID | 20231020091625.206561-1-suhui@nfschina.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 6e7ce2d71bb99096d811918341fde61e66bfff2c |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: lan966x: remove useless code in lan966x_xtr_irq_handler | expand |
Hello: This patch was applied to netdev/net-next.git (main) by David S. Miller <davem@davemloft.net>: 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 <suhui@nfschina.com> > --- > 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!
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;
'err' is useless after break, remove this to save space and be more clear. Signed-off-by: Su Hui <suhui@nfschina.com> --- drivers/net/ethernet/microchip/lan966x/lan966x_main.c | 1 - 1 file changed, 1 deletion(-)