ipv4: fix checkpatch errors
[deliverable/linux.git] / net / ipv4 / ip_options.c
index a0d0d9d9b8702e45241f8ca45d92a9993a3d90f1..1372c4586edc099ef4f8ded3b41cf3b18f6d50f1 100644 (file)
@@ -210,10 +210,10 @@ int ip_options_echo(struct ip_options *dopt, struct sk_buff *skb)
  *     Simple and stupid 8), but the most efficient way.
  */
 
-void ip_options_fragment(struct sk_buff * skb)
+void ip_options_fragment(struct sk_buff *skb)
 {
        unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr);
-       struct ip_options * opt = &(IPCB(skb)->opt);
+       struct ip_options *opt = &(IPCB(skb)->opt);
        int  l = opt->optlen;
        int  optlen;
 
@@ -248,13 +248,13 @@ void ip_options_fragment(struct sk_buff * skb)
  */
 
 int ip_options_compile(struct net *net,
-                      struct ip_options * opt, struct sk_buff * skb)
+                      struct ip_options *opt, struct sk_buff *skb)
 {
        int l;
-       unsigned char * iph;
-       unsigned char * optptr;
+       unsigned char *iph;
+       unsigned char *optptr;
        int optlen;
-       unsigned char * pp_ptr = NULL;
+       unsigned char *pp_ptr = NULL;
        struct rtable *rt = NULL;
 
        if (skb != NULL) {
@@ -473,20 +473,20 @@ EXPORT_SYMBOL(ip_options_compile);
  *     Undo all the changes done by ip_options_compile().
  */
 
-void ip_options_undo(struct ip_options * opt)
+void ip_options_undo(struct ip_options *opt)
 {
        if (opt->srr) {
-               unsigned  char * optptr = opt->__data+opt->srr-sizeof(struct  iphdr);
+               unsigned  char *optptr = opt->__data+opt->srr-sizeof(struct  iphdr);
                memmove(optptr+7, optptr+3, optptr[1]-7);
                memcpy(optptr+3, &opt->faddr, 4);
        }
        if (opt->rr_needaddr) {
-               unsigned  char * optptr = opt->__data+opt->rr-sizeof(struct  iphdr);
+               unsigned  char *optptr = opt->__data+opt->rr-sizeof(struct  iphdr);
                optptr[2] -= 4;
                memset(&optptr[optptr[2]-1], 0, 4);
        }
        if (opt->ts) {
-               unsigned  char * optptr = opt->__data+opt->ts-sizeof(struct  iphdr);
+               unsigned  char *optptr = opt->__data+opt->ts-sizeof(struct  iphdr);
                if (opt->ts_needtime) {
                        optptr[2] -= 4;
                        memset(&optptr[optptr[2]-1], 0, 4);
@@ -549,8 +549,8 @@ int ip_options_get(struct net *net, struct ip_options_rcu **optp,
 
 void ip_forward_options(struct sk_buff *skb)
 {
-       struct   ip_options * opt       = &(IPCB(skb)->opt);
-       unsigned char * optptr;
+       struct   ip_options *opt        = &(IPCB(skb)->opt);
+       unsigned char *optptr;
        struct rtable *rt = skb_rtable(skb);
        unsigned char *raw = skb_network_header(skb);
 
This page took 0.043806 seconds and 5 git commands to generate.