diff options
| author | Su Hui <[email protected]> | 2023-10-20 09:16:26 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-10-23 08:56:05 +0000 |
| commit | 6e7ce2d71bb99096d811918341fde61e66bfff2c (patch) | |
| tree | 1f2ecb6b30936c0149fcc988a153b89ae4fb2ece | |
| parent | Merge branch 'tcp-ts-usec-resolution' (diff) | |
| download | kernel-6e7ce2d71bb99096d811918341fde61e66bfff2c.tar.gz kernel-6e7ce2d71bb99096d811918341fde61e66bfff2c.zip | |
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]>
Signed-off-by: David S. Miller <[email protected]>
| -rw-r--r-- | drivers/net/ethernet/microchip/lan966x/lan966x_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c index 8e4101628fbd..2635ef8958c8 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; |
