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 <suhui@nfschina.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bdf24b4bdf
commit
6e7ce2d71b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user