hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/net/ethernet/amd/declance.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Lance ethernet driver for the MIPS processor based
34 * DECstation family
....@@ -607,7 +608,7 @@
607608 len = (*rds_ptr(rd, mblength, lp->type) & 0xfff) - 4;
608609 skb = netdev_alloc_skb(dev, len + 2);
609610
610
- if (skb == 0) {
611
+ if (!skb) {
611612 dev->stats.rx_dropped++;
612613 *rds_ptr(rd, mblength, lp->type) = 0;
613614 *rds_ptr(rd, rmd1, lp->type) =
....@@ -883,7 +884,7 @@
883884 return status;
884885 }
885886
886
-static void lance_tx_timeout(struct net_device *dev)
887
+static void lance_tx_timeout(struct net_device *dev, unsigned int txqueue)
887888 {
888889 struct lance_private *lp = netdev_priv(dev);
889890 volatile struct lance_regs *ll = lp->ll;