net: clean up net/ipv4/ip_fragment.c tcp_timer.c ip_input.c
authorJianjun Kong <jianjun@zeuux.org>
Mon, 3 Nov 2008 10:47:38 +0000 (02:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Nov 2008 10:47:38 +0000 (02:47 -0800)
Signed-off-by: Jianjun Kong <jianjun@zeuux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_fragment.c
net/ipv4/ip_input.c
net/ipv4/tcp_timer.c

index 8c495e34d563c76b9a2fc95c702d5c9e645a844d..1a3c37b5e936252095c82dbe68f04f02f1d914c0 100644 (file)
@@ -56,7 +56,7 @@ struct ipfrag_skb_cb
        int                     offset;
 };
 
-#define FRAG_CB(skb)   ((struct ipfrag_skb_cb*)((skb)->cb))
+#define FRAG_CB(skb)   ((struct ipfrag_skb_cb *)((skb)->cb))
 
 /* Describe an entry in the "incomplete datagrams" queue. */
 struct ipq {
index 1b6475c05eb4045129b61da28972203e4a3780b3..70bedab03b0948560099ce1e651e5f70b4054ff8 100644 (file)
@@ -340,9 +340,9 @@ static int ip_rcv_finish(struct sk_buff *skb)
                struct ip_rt_acct *st = per_cpu_ptr(ip_rt_acct, smp_processor_id());
                u32 idx = skb->dst->tclassid;
                st[idx&0xFF].o_packets++;
-               st[idx&0xFF].o_bytes+=skb->len;
+               st[idx&0xFF].o_bytes += skb->len;
                st[(idx>>16)&0xFF].i_packets++;
-               st[(idx>>16)&0xFF].i_bytes+=skb->len;
+               st[(idx>>16)&0xFF].i_bytes += skb->len;
        }
 #endif
 
index 9843f6cb40a598ee00fe2af80d3c4ccb5d9127d8..3df339e3e363496f32c058cb22ae394be8f4177f 100644 (file)
@@ -171,7 +171,7 @@ static int tcp_write_timeout(struct sock *sk)
 
 static void tcp_delack_timer(unsigned long data)
 {
-       struct sock *sk = (struct sock*)data;
+       struct sock *sk = (struct sock *)data;
        struct tcp_sock *tp = tcp_sk(sk);
        struct inet_connection_sock *icsk = inet_csk(sk);
 
@@ -396,7 +396,7 @@ out:;
 
 static void tcp_write_timer(unsigned long data)
 {
-       struct sock *sk = (struct sock*)data;
+       struct sock *sk = (struct sock *)data;
        struct inet_connection_sock *icsk = inet_csk(sk);
        int event;