Skip to content

Commit 9ab9bb0

Browse files
committed
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: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
1 parent 26fff59 commit 9ab9bb0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/6lowpan/iphc.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,9 @@ int lowpan_process_data(struct sk_buff *skb, struct net_device *dev,
408408
}
409409

410410
/* Hop Limit */
411-
if ((iphc0 & 0x03) != LOWPAN_IPHC_TTL_I)
411+
if ((iphc0 & 0x03) != LOWPAN_IPHC_TTL_I) {
412412
hdr.hop_limit = lowpan_ttl_values[iphc0 & 0x03];
413-
else {
413+
} else {
414414
if (lowpan_fetch_skb(skb, &hdr.hop_limit,
415415
sizeof(hdr.hop_limit)))
416416
goto drop;

0 commit comments

Comments
 (0)