diff options
author | Benjamin Thery <benjamin.thery@bull.net> | 2007-10-08 20:39:36 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 16:54:58 -0700 |
commit | 0a8891a0a419d43ea06c8ded0849f0820c6a873b (patch) | |
tree | c27533cfcb08840470ae082bc981a03d2fa57c22 /include/asm-i386/mach-bigsmp | |
parent | 4665079cbb2a3e17de82f2ab2940b9f97f37d65e (diff) |
[IPv6]: use container_of() macro in fib6_clean_node()
In ip6_fib.c, fib6_clean_node() casts a fib6_walker_t pointer to
a fib6_cleaner_t pointer assuming a struct fib6_walker_t (field 'w')
is the first field in struct fib6_walker_t.
To prevent any future problems that may occur if one day a field
is inadvertently inserted before the 'w' field in struct fib6_cleaner_t,
(and to improve readability), this patch uses the container_of() macro.
Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-i386/mach-bigsmp')
0 files changed, 0 insertions, 0 deletions