forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/isdn/mISDN/layer2.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/mISDNif.h>
....@@ -909,8 +900,7 @@
909900 send_uframe(l2, NULL, DISC | 0x10, CMD);
910901 mISDN_FsmDelTimer(&l2->t203, 1);
911902 restart_t200(l2, 2);
912
- if (skb)
913
- dev_kfree_skb(skb);
903
+ dev_kfree_skb(skb);
914904 }
915905
916906 static void
....@@ -1731,8 +1721,7 @@
17311721 enquiry_cr(l2, RNR, RSP, 0);
17321722 test_and_clear_bit(FLG_ACK_PEND, &l2->flag);
17331723 }
1734
- if (skb)
1735
- dev_kfree_skb(skb);
1724
+ dev_kfree_skb(skb);
17361725 }
17371726
17381727 static void
....@@ -1745,8 +1734,7 @@
17451734 enquiry_cr(l2, RR, RSP, 0);
17461735 test_and_clear_bit(FLG_ACK_PEND, &l2->flag);
17471736 }
1748
- if (skb)
1749
- dev_kfree_skb(skb);
1737
+ dev_kfree_skb(skb);
17501738 }
17511739
17521740 static void