hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/can/usb/peak_usb/pcan_usb_core.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * CAN driver for PEAK System USB adapters
34 * Derived from the PCAN project file driver/src/pcan_usb_core.c
....@@ -6,15 +7,6 @@
67 * Copyright (C) 2010-2012 Stephane Grosjean <s.grosjean@peak-system.com>
78 *
89 * Many thanks to Klaus Hitschler <klaus.hitschler@gmx.de>
9
- *
10
- * This program is free software; you can redistribute it and/or modify it
11
- * under the terms of the GNU General Public License as published
12
- * by the Free Software Foundation; version 2 of the License.
13
- *
14
- * This program is distributed in the hope that it will be useful, but
15
- * WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
- * General Public License for more details.
1810 */
1911 #include <linux/init.h>
2012 #include <linux/signal.h>
....@@ -394,7 +386,7 @@
394386 default:
395387 netdev_warn(netdev, "tx urb submitting failed err=%d\n",
396388 err);
397
- /* fall through */
389
+ fallthrough;
398390 case -ENOENT:
399391 /* cable unplugged */
400392 stats->tx_dropped++;