forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/net/usb/lg-vl600.c
....@@ -1,21 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Ethernet interface part of the LG VL600 LTE modem (4G dongle)
34 *
45 * Copyright (C) 2011 Intel Corporation
56 * Author: Andrzej Zaborowski <balrogg@gmail.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
197 */
208 #include <linux/etherdevice.h>
219 #include <linux/ethtool.h>
....@@ -99,9 +87,7 @@
9987 {
10088 struct vl600_state *s = dev->driver_priv;
10189
102
- if (s->current_rx_buf)
103
- dev_kfree_skb(s->current_rx_buf);
104
-
90
+ dev_kfree_skb(s->current_rx_buf);
10591 kfree(s);
10692
10793 return usbnet_cdc_unbind(dev, intf);