Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2e3a479 authored by Alexander Aring's avatar Alexander Aring Committed by Marcel Holtmann
Browse files

6lowpan: iphc: remove check on null



This memory is placed on stack and can't be null so remove the check on
null.

Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 556a5bfc
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -268,9 +268,6 @@ uncompress_udp_header(struct sk_buff *skb, struct udphdr *uh)
	bool fail;
	bool fail;
	u8 tmp = 0, val = 0;
	u8 tmp = 0, val = 0;


	if (!uh)
		goto err;

	fail = lowpan_fetch_skb(skb, &tmp, sizeof(tmp));
	fail = lowpan_fetch_skb(skb, &tmp, sizeof(tmp));


	if ((tmp & LOWPAN_NHC_UDP_MASK) == LOWPAN_NHC_UDP_ID) {
	if ((tmp & LOWPAN_NHC_UDP_MASK) == LOWPAN_NHC_UDP_ID) {