.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * |
---|
3 | 4 | * Author Karsten Keil <kkeil@novell.com> |
---|
4 | 5 | * |
---|
5 | 6 | * Copyright 2008 by Karsten Keil <kkeil@novell.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 version 2 as |
---|
9 | | - * published by the Free Software Foundation. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, |
---|
12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | | - * GNU General Public License for more details. |
---|
15 | | - * |
---|
16 | 7 | */ |
---|
17 | 8 | |
---|
18 | 9 | #include <linux/slab.h> |
---|
.. | .. |
---|
84 | 75 | cskb = NULL; |
---|
85 | 76 | } |
---|
86 | 77 | read_unlock(&sl->lock); |
---|
87 | | - if (cskb) |
---|
88 | | - dev_kfree_skb(cskb); |
---|
| 78 | + dev_kfree_skb(cskb); |
---|
89 | 79 | } |
---|
90 | 80 | |
---|
91 | 81 | static void |
---|
.. | .. |
---|
143 | 133 | } |
---|
144 | 134 | out: |
---|
145 | 135 | mutex_unlock(&st->lmutex); |
---|
146 | | - if (skb) |
---|
147 | | - dev_kfree_skb(skb); |
---|
| 136 | + dev_kfree_skb(skb); |
---|
148 | 137 | } |
---|
149 | 138 | |
---|
150 | 139 | static inline int |
---|
.. | .. |
---|
539 | 528 | rq.protocol = ISDN_P_NT_S0; |
---|
540 | 529 | if (dev->Dprotocols & (1 << ISDN_P_NT_E1)) |
---|
541 | 530 | rq.protocol = ISDN_P_NT_E1; |
---|
542 | | - /* fall through */ |
---|
| 531 | + fallthrough; |
---|
543 | 532 | case ISDN_P_LAPD_TE: |
---|
544 | 533 | ch->recv = mISDN_queue_message; |
---|
545 | 534 | ch->peer = &dev->D.st->own; |
---|