From: Shmulik Ladkani Date: Fri, 30 Nov 2012 10:25:59 +0000 (+0000) Subject: ipv6: unify logic evaluating inet6_dev's accept_ra property X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~141 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeaf6e9d2f49d793d3eb8c1af4095cf25e061b94;p=pandora-kernel.git ipv6: unify logic evaluating inet6_dev's accept_ra property As of 026359b [ipv6: Send ICMPv6 RSes only when RAs are accepted], the logic determining whether to send Router Solicitations is identical to the logic determining whether kernel accepts Router Advertisements. However the condition itself is repeated in several code locations. Unify it by introducing 'ipv6_accept_ra()' accessor. Also, simplify the condition expression, making it more readable. No semantic change. Signed-off-by: Shmulik Ladkani Signed-off-by: David S. Miller --- Reading git-diff-tree failed