.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /*****************************************************************************/ |
---|
2 | 3 | |
---|
3 | 4 | /* |
---|
4 | 5 | * hdlcdrv.c -- HDLC packet radio network driver. |
---|
5 | 6 | * |
---|
6 | 7 | * Copyright (C) 1996-2000 Thomas Sailer (sailer@ife.ee.ethz.ch) |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License as published by |
---|
10 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
11 | | - * (at your option) any later version. |
---|
12 | | - * |
---|
13 | | - * This program is distributed in the hope that it will be useful, |
---|
14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | | - * GNU General Public License for more details. |
---|
17 | | - * |
---|
18 | | - * You should have received a copy of the GNU General Public License |
---|
19 | | - * along with this program; if not, write to the Free Software |
---|
20 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
21 | 8 | * |
---|
22 | 9 | * Please note that the GPL allows you to use the driver, NOT the radio. |
---|
23 | 10 | * In order to use the radio, you need a license from the communications |
---|
.. | .. |
---|
488 | 475 | |
---|
489 | 476 | if (s->ops && s->ops->close) |
---|
490 | 477 | i = s->ops->close(dev); |
---|
491 | | - if (s->skb) |
---|
492 | | - dev_kfree_skb(s->skb); |
---|
| 478 | + dev_kfree_skb(s->skb); |
---|
493 | 479 | s->skb = NULL; |
---|
494 | 480 | s->opened = 0; |
---|
495 | 481 | return i; |
---|
.. | .. |
---|
700 | 686 | struct net_device *dev; |
---|
701 | 687 | struct hdlcdrv_state *s; |
---|
702 | 688 | int err; |
---|
703 | | - |
---|
704 | | - BUG_ON(ops == NULL); |
---|
705 | 689 | |
---|
706 | 690 | if (privsize < sizeof(struct hdlcdrv_state)) |
---|
707 | 691 | privsize = sizeof(struct hdlcdrv_state); |
---|