6lowpan: iphc: Fix missing braces for if statement
Subsystems (3)
Marcel Holtmann
maintainerPATCH 4/5 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 <[email protected]>
--- net/6lowpan/iphc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/6lowpan/iphc.c +2 -2
@@ -408,9 +408,9 @@ int lowpan_process_data(struct sk_buff *skb, struct net_device *dev, }/* Hop Limit */ -if ((iphc0 &0x03 ) !=LOWPAN_IPHC_TTL_I ) +if ((iphc0 &0x03 ) !=LOWPAN_IPHC_TTL_I ) { hdr.hop_limit = lowpan_ttl_values[iphc0 &0x03 ]; -else { + }else {if (lowpan_fetch_skb (skb, &hdr.hop_limit,sizeof (hdr.hop_limit))) goto drop;
Signature · 1 line
1.9.3