Commit 6e7ce2d7 authored by Su Hui's avatar Su Hui Committed by David S. Miller

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: default avatarSu Hui <suhui@nfschina.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bdf24b4b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment