aboutsummaryrefslogtreecommitdiffstats
path: root/net/6lowpan/iphc.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-07-29 21:48:43 -0400
committerMarcel Holtmann <marcel@holtmann.org>2014-07-30 13:28:40 -0400
commit9ab9bb009c16cb785a4358699bbafd4094948893 (patch)
tree905a64a47d46c2a2e21749700c80689c0f1d0544 /net/6lowpan/iphc.c
parent26fff593cd7fea82e2a287a65fa6951eef7f9cd6 (diff)
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>
Diffstat (limited to 'net/6lowpan/iphc.c')
-rw-r--r--net/6lowpan/iphc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/6lowpan/iphc.c b/net/6lowpan/iphc.c
index e6cf68e8667f..9e47702d24dd 100644
--- a/net/6lowpan/iphc.c
+++ b/net/6lowpan/iphc.c
@@ -408,9 +408,9 @@ int lowpan_process_data(struct sk_buff *skb, struct net_device *dev,
408 } 408 }
409 409
410 /* Hop Limit */ 410 /* Hop Limit */
411 if ((iphc0 & 0x03) != LOWPAN_IPHC_TTL_I) 411 if ((iphc0 & 0x03) != LOWPAN_IPHC_TTL_I) {
412 hdr.hop_limit = lowpan_ttl_values[iphc0 & 0x03]; 412 hdr.hop_limit = lowpan_ttl_values[iphc0 & 0x03];
413 else { 413 } else {
414 if (lowpan_fetch_skb(skb, &hdr.hop_limit, 414 if (lowpan_fetch_skb(skb, &hdr.hop_limit,
415 sizeof(hdr.hop_limit))) 415 sizeof(hdr.hop_limit)))
416 goto drop; 416 goto drop;