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

Commit 9ab9bb00 authored by Marcel Holtmann's avatar Marcel Holtmann
Browse files

6lowpan: iphc: Fix missing braces for if statement



CHECK: braces {} should be used on all arms of this statement
+	if ((iphc0 & 0x03) != LOWPAN_IPHC_TTL_I)
[...]
+	else {
[...]

Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 26fff593
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -408,9 +408,9 @@ int lowpan_process_data(struct sk_buff *skb, struct net_device *dev,
	}
	}


	/* Hop Limit */
	/* Hop Limit */
	if ((iphc0 & 0x03) != LOWPAN_IPHC_TTL_I)
	if ((iphc0 & 0x03) != LOWPAN_IPHC_TTL_I) {
		hdr.hop_limit = lowpan_ttl_values[iphc0 & 0x03];
		hdr.hop_limit = lowpan_ttl_values[iphc0 & 0x03];
	else {
	} else {
		if (lowpan_fetch_skb(skb, &hdr.hop_limit,
		if (lowpan_fetch_skb(skb, &hdr.hop_limit,
				     sizeof(hdr.hop_limit)))
				     sizeof(hdr.hop_limit)))
			goto drop;
			goto drop;