hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/net/usb/catc.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) 2001 Vojtech Pavlik
34 *
....@@ -13,18 +14,6 @@
1314 */
1415
1516 /*
16
- * This program is free software; you can redistribute it and/or modify
17
- * it under the terms of the GNU General Public License as published by
18
- * the Free Software Foundation; either version 2 of the License, or
19
- * (at your option) any later version.
20
- *
21
- * This program is distributed in the hope that it will be useful,
22
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
23
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
- * GNU General Public License for more details.
25
- *
26
- * You should have received a copy of the GNU General Public License
27
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
2817 *
2918 * Should you need to contact me, the author, you can do so either by
3019 * e-mail - mail your message to <vojtech@suse.cz>, or by paper mail:
....@@ -458,7 +447,7 @@
458447 return NETDEV_TX_OK;
459448 }
460449
461
-static void catc_tx_timeout(struct net_device *netdev)
450
+static void catc_tx_timeout(struct net_device *netdev, unsigned int txqueue)
462451 {
463452 struct catc *catc = netdev_priv(netdev);
464453
....@@ -869,7 +858,7 @@
869858 default:
870859 dev_warn(&intf->dev,
871860 "Couldn't detect memory size, assuming 32k\n");
872
- /* fall through */
861
+ fallthrough;
873862 case 0x87654321:
874863 catc_set_reg(catc, TxBufCount, 4);
875864 catc_set_reg(catc, RxBufCount, 16);