Skip to content

Commit

Permalink
net: lan966x: remove useless code in lan966x_xtr_irq_handler
Browse files Browse the repository at this point in the history
'err' is useless after break, remove this to save space and
be more clear.

Signed-off-by: Su Hui <suhui@nfschina.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Su Hui authored and David S. Miller committed Oct 23, 2023
1 parent bdf24b4 commit 6e7ce2d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/ethernet/microchip/lan966x/lan966x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6e7ce2d

Please sign in to comment.