]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc06eff831a397f2627b5151ac05c70cde52925f9
treec8afca51e9292740d3d2261e8a3f95e65a1135ee
parentba54a24227156c94a1b601a75a18ad319723feb4
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