hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/isdn/mISDN/stack.c
....@@ -1,18 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 *
34 * Author Karsten Keil <kkeil@novell.com>
45 *
56 * 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
- *
167 */
178
189 #include <linux/slab.h>
....@@ -84,8 +75,7 @@
8475 cskb = NULL;
8576 }
8677 read_unlock(&sl->lock);
87
- if (cskb)
88
- dev_kfree_skb(cskb);
78
+ dev_kfree_skb(cskb);
8979 }
9080
9181 static void
....@@ -143,8 +133,7 @@
143133 }
144134 out:
145135 mutex_unlock(&st->lmutex);
146
- if (skb)
147
- dev_kfree_skb(skb);
136
+ dev_kfree_skb(skb);
148137 }
149138
150139 static inline int
....@@ -539,7 +528,7 @@
539528 rq.protocol = ISDN_P_NT_S0;
540529 if (dev->Dprotocols & (1 << ISDN_P_NT_E1))
541530 rq.protocol = ISDN_P_NT_E1;
542
- /* fall through */
531
+ fallthrough;
543532 case ISDN_P_LAPD_TE:
544533 ch->recv = mISDN_queue_message;
545534 ch->peer = &dev->D.st->own;