hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/usb/sierra_net.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * USB-to-WWAN Driver for Sierra Wireless modems
34 *
....@@ -9,19 +10,6 @@
910 *
1011 * IMPORTANT DISCLAIMER: This driver is not commercially supported by
1112 * Sierra Wireless. Use at your own risk.
12
- *
13
- * This program is free software; you can redistribute it and/or modify
14
- * it under the terms of the GNU General Public License as published by
15
- * the Free Software Foundation; either version 2 of the License, or
16
- * (at your option) any later version.
17
- *
18
- * This program is distributed in the hope that it will be useful,
19
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
- * GNU General Public License for more details.
22
- *
23
- * You should have received a copy of the GNU General Public License
24
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
2513 */
2614
2715 #define DRIVER_VERSION "v.2.0"
....@@ -364,11 +352,6 @@
364352 priv->tx_hdr_template[1] = ctx_ix;
365353 *((__be16 *)&priv->tx_hdr_template[2]) =
366354 cpu_to_be16(SIERRA_NET_HIP_EXT_IP_OUT_ID);
367
-}
368
-
369
-static inline int sierra_net_is_valid_addrlen(u8 len)
370
-{
371
- return len == sizeof(struct in_addr);
372355 }
373356
374357 static int sierra_net_parse_lsi(struct usbnet *dev, char *data, int datalen)
....@@ -877,7 +860,7 @@
877860 u16 len;
878861 bool need_tail;
879862
880
- BUILD_BUG_ON(FIELD_SIZEOF(struct usbnet, data)
863
+ BUILD_BUG_ON(sizeof_field(struct usbnet, data)
881864 < sizeof(struct cdc_state));
882865
883866 dev_dbg(&dev->udev->dev, "%s", __func__);