From: Benjamin Thery Date: Tue, 9 Oct 2007 03:39:36 +0000 (-0700) Subject: [IPv6]: use container_of() macro in fib6_clean_node() X-Git-Tag: v2.6.24-rc1~1454^2~129 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a8891a0a419d43ea06c8ded0849f0820c6a873b;p=pandora-kernel.git [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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed