hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/wan/z85230.c
....@@ -1,8 +1,5 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
2
- * This program is free software; you can redistribute it and/or
3
- * modify it under the terms of the GNU General Public License
4
- * as published by the Free Software Foundation; either version
5
- * 2 of the License, or (at your option) any later version.
63 *
74 * (c) Copyright 1998 Alan Cox <alan@lxorguk.ukuu.org.uk>
85 * (c) Copyright 2000, 2001 Red Hat Inc
....@@ -705,7 +702,7 @@
705702 irqreturn_t z8530_interrupt(int irq, void *dev_id)
706703 {
707704 struct z8530_dev *dev=dev_id;
708
- u8 uninitialized_var(intr);
705
+ u8 intr;
709706 static volatile int locker=0;
710707 int work=0;
711708 struct z8530_irqhandler *irqs;
....@@ -1536,7 +1533,7 @@
15361533 z8530_tx_begin(c);
15371534 c->netdevice->stats.tx_packets++;
15381535 c->netdevice->stats.tx_bytes += skb->len;
1539
- dev_kfree_skb_irq(skb);
1536
+ dev_consume_skb_irq(skb);
15401537 }
15411538
15421539 /**