ASoC: rockchip: i2s: fixup clk div
[firefly-linux-kernel-4.4.55.git] / net / netfilter / xt_HL.c
index 95b084800fcc7ca5672b817167528a0334c2246f..1535e87ed9bd4fa47a7f431afab82320cf5e8530 100644 (file)
@@ -38,22 +38,22 @@ ttl_tg(struct sk_buff *skb, const struct xt_action_param *par)
        iph = ip_hdr(skb);
 
        switch (info->mode) {
-               case IPT_TTL_SET:
-                       new_ttl = info->ttl;
-                       break;
-               case IPT_TTL_INC:
-                       new_ttl = iph->ttl + info->ttl;
-                       if (new_ttl > 255)
-                               new_ttl = 255;
-                       break;
-               case IPT_TTL_DEC:
-                       new_ttl = iph->ttl - info->ttl;
-                       if (new_ttl < 0)
-                               new_ttl = 0;
-                       break;
-               default:
-                       new_ttl = iph->ttl;
-                       break;
+       case IPT_TTL_SET:
+               new_ttl = info->ttl;
+               break;
+       case IPT_TTL_INC:
+               new_ttl = iph->ttl + info->ttl;
+               if (new_ttl > 255)
+                       new_ttl = 255;
+               break;
+       case IPT_TTL_DEC:
+               new_ttl = iph->ttl - info->ttl;
+               if (new_ttl < 0)
+                       new_ttl = 0;
+               break;
+       default:
+               new_ttl = iph->ttl;
+               break;
        }
 
        if (new_ttl != iph->ttl) {
@@ -78,22 +78,22 @@ hl_tg6(struct sk_buff *skb, const struct xt_action_param *par)
        ip6h = ipv6_hdr(skb);
 
        switch (info->mode) {
-               case IP6T_HL_SET:
-                       new_hl = info->hop_limit;
-                       break;
-               case IP6T_HL_INC:
-                       new_hl = ip6h->hop_limit + info->hop_limit;
-                       if (new_hl > 255)
-                               new_hl = 255;
-                       break;
-               case IP6T_HL_DEC:
-                       new_hl = ip6h->hop_limit - info->hop_limit;
-                       if (new_hl < 0)
-                               new_hl = 0;
-                       break;
-               default:
-                       new_hl = ip6h->hop_limit;
-                       break;
+       case IP6T_HL_SET:
+               new_hl = info->hop_limit;
+               break;
+       case IP6T_HL_INC:
+               new_hl = ip6h->hop_limit + info->hop_limit;
+               if (new_hl > 255)
+                       new_hl = 255;
+               break;
+       case IP6T_HL_DEC:
+               new_hl = ip6h->hop_limit - info->hop_limit;
+               if (new_hl < 0)
+                       new_hl = 0;
+               break;
+       default:
+               new_hl = ip6h->hop_limit;
+               break;
        }
 
        ip6h->hop_limit = new_hl;