| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Ethernet interface part of the LG VL600 LTE modem (4G dongle) |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2011 Intel Corporation |
|---|
| 5 | 6 | * 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/>. |
|---|
| 19 | 7 | */ |
|---|
| 20 | 8 | #include <linux/etherdevice.h> |
|---|
| 21 | 9 | #include <linux/ethtool.h> |
|---|
| .. | .. |
|---|
| 99 | 87 | { |
|---|
| 100 | 88 | struct vl600_state *s = dev->driver_priv; |
|---|
| 101 | 89 | |
|---|
| 102 | | - if (s->current_rx_buf) |
|---|
| 103 | | - dev_kfree_skb(s->current_rx_buf); |
|---|
| 104 | | - |
|---|
| 90 | + dev_kfree_skb(s->current_rx_buf); |
|---|
| 105 | 91 | kfree(s); |
|---|
| 106 | 92 | |
|---|
| 107 | 93 | return usbnet_cdc_unbind(dev, intf); |
|---|