From: Chuck Lever Date: Tue, 26 Jan 2010 19:04:04 +0000 (-0500) Subject: SUNRPC: Bury "#ifdef IPV6" in svc_create_xprt() X-Git-Tag: v2.6.34-rc1~27^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6783b2b6c4050df0ba0a84c6842cf5bc2212ef9;p=pandora-kernel.git SUNRPC: Bury "#ifdef IPV6" in svc_create_xprt() Clean up: Bruce observed we have more or less common logic in each of svc_create_xprt()'s callers: the check to create an IPv6 RPC listener socket only if CONFIG_IPV6 is set. I'm about to add another case that does just the same. If we move the ifdefs into __svc_xpo_create(), then svc_create_xprt() call sites can get rid of the "#ifdef" ugliness, and can use the same logic with or without IPv6 support available in the kernel. Signed-off-by: Chuck Lever Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed