inet: toss struct net initialization around
authorPavel Emelyanov <xemul@openvz.org>
Tue, 15 Jul 2008 06:01:40 +0000 (23:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jul 2008 06:05:26 +0000 (23:05 -0700)
commitfd54d716b1f6a3551ec17a4bb34027727b2db09a
treec8afca51e9292740d3d2261e8a3f95e65a1135ee
parent0388b0042624714e6f8db8cc7994101a0a02d392
inet: toss struct net initialization around

Some places, that deal with ICMP statistics already have where
to get a struct net from, but use it directly, without declaring
a separate variable on the stack.

Since I will need this net soon, I declare a struct net on the
stack and use it in the existing places in a separate patch not
to spoil the future ones.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ipv4.c
net/ipv4/icmp.c
net/ipv4/tcp_ipv4.c
net/ipv4/udp.c