[NETFILTER]: nf_sockopts list head cleanup
authorAlexey Dobriyan <adobriyan@sw.ru>
Tue, 6 Nov 2007 04:44:06 +0000 (20:44 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 7 Nov 2007 12:08:24 +0000 (04:08 -0800)
commit55d84acd366f08e11ff00139f32fe4394fb0016a
tree63ff6b84bec0bebd0c365586b957e3cbccdfbe26
parentd1332e0ab84479d941de5cf4a69c71dfd385a25e
[NETFILTER]: nf_sockopts list head cleanup

Code is using knowledge that nf_sockopt_ops::list list_head is first
field in structure by using casts. Switch to list_for_each_entry()
itetators while I am at it.

Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_sockopt.c