forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/net/usb/kalmia.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * USB network interface driver for Samsung Kalmia based LTE USB modem like the
34 * Samsung GT-B3730 and GT-B3710.
....@@ -7,11 +8,6 @@
78 * Sponsored by Quicklink Video Distribution Services Ltd.
89 *
910 * Based on the cdc_eem module.
10
- *
11
- * This program is free software; you can redistribute it and/or modify
12
- * it under the terms of the GNU General Public License as published by
13
- * the Free Software Foundation; either version 2 of the License, or
14
- * (at your option) any later version.
1511 */
1612
1713 #include <linux/module.h>
....@@ -69,8 +65,8 @@
6965 init_msg, init_msg_len, &act_len, KALMIA_USB_TIMEOUT);
7066 if (status != 0) {
7167 netdev_err(dev->net,
72
- "Error sending init packet. Status %i, length %i\n",
73
- status, act_len);
68
+ "Error sending init packet. Status %i\n",
69
+ status);
7470 return status;
7571 }
7672 else if (act_len != init_msg_len) {
....@@ -87,8 +83,8 @@
8783
8884 if (status != 0)
8985 netdev_err(dev->net,
90
- "Error receiving init result. Status %i, length %i\n",
91
- status, act_len);
86
+ "Error receiving init result. Status %i\n",
87
+ status);
9288 else if (act_len != expected_len)
9389 netdev_err(dev->net, "Unexpected init result length: %i\n",
9490 act_len);