ipv6: White-space cleansing : Line Layouts
[firefly-linux-kernel-4.4.55.git] / net / ipv6 / ah6.c
index 72a4930bdc0a0e0d43e1a6ad8670e6a1df1608f4..ac71d9e0a500aed5fb2779e9f49b3e7f27c5a106 100644 (file)
  * Authors
  *
  *     Mitsuru KANDA @USAGI       : IPv6 Support
- *     Kazunori MIYAZAWA @USAGI   :
- *     Kunihiro Ishiguro <kunihiro@ipinfusion.com>
+ *     Kazunori MIYAZAWA @USAGI   :
+ *     Kunihiro Ishiguro <kunihiro@ipinfusion.com>
  *
- *     This file is derived from net/ipv4/ah.c.
+ *     This file is derived from net/ipv4/ah.c.
  */
 
 #define pr_fmt(fmt) "IPv6: " fmt
@@ -284,7 +284,7 @@ static int ipv6_clear_mutable_options(struct ipv6hdr *iph, int len, int dir)
                        ipv6_rearrange_rthdr(iph, exthdr.rth);
                        break;
 
-               default :
+               default:
                        return 0;
                }
 
@@ -478,7 +478,7 @@ static void ah6_input_done(struct crypto_async_request *base, int err)
        auth_data = ah_tmp_auth(work_iph, hdr_len);
        icv = ah_tmp_icv(ahp->ahash, auth_data, ahp->icv_trunc_len);
 
-       err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG: 0;
+       err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0;
        if (err)
                goto out;
 
@@ -622,7 +622,7 @@ static int ah6_input(struct xfrm_state *x, struct sk_buff *skb)
                goto out_free;
        }
 
-       err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG: 0;
+       err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0;
        if (err)
                goto out_free;
 
@@ -647,8 +647,8 @@ static int ah6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
                   u8 type, u8 code, int offset, __be32 info)
 {
        struct net *net = dev_net(skb->dev);
-       struct ipv6hdr *iph = (struct ipv6hdr*)skb->data;
-       struct ip_auth_hdr *ah = (struct ip_auth_hdr*)(skb->data+offset);
+       struct ipv6hdr *iph = (struct ipv6hdr *)skb->data;
+       struct ip_auth_hdr *ah = (struct ip_auth_hdr *)(skb->data+offset);
        struct xfrm_state *x;
 
        if (type != ICMPV6_PKT_TOOBIG &&