hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/net/ieee802154/6lowpan/rx.c
....@@ -1,12 +1,4 @@
1
-/* This program is free software; you can redistribute it and/or modify
2
- * it under the terms of the GNU General Public License version 2
3
- * as published by the Free Software Foundation.
4
- *
5
- * This program is distributed in the hope that it will be useful,
6
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
7
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8
- * GNU General Public License for more details.
9
- */
1
+// SPDX-License-Identifier: GPL-2.0-only
102
113 #include <linux/if_arp.h>
124
....@@ -43,11 +35,11 @@
4335 net_warn_ratelimited("%s: received unknown dispatch\n",
4436 __func__);
4537
46
- /* fall-through */
38
+ fallthrough;
4739 case RX_DROP_UNUSABLE:
4840 kfree_skb(skb);
4941
50
- /* fall-through */
42
+ fallthrough;
5143 case RX_DROP:
5244 return NET_RX_DROP;
5345 case RX_QUEUED:
....@@ -248,7 +240,7 @@
248240 return ((dispatch >= 0x44 && dispatch <= 0x4F) ||
249241 (dispatch >= 0x51 && dispatch <= 0x5F) ||
250242 (dispatch >= 0xc8 && dispatch <= 0xdf) ||
251
- (dispatch >= 0xe8 && dispatch <= 0xff));
243
+ dispatch >= 0xe8);
252244 }
253245
254246 /* lowpan_rx_h_check checks on generic 6LoWPAN requirements