From: YOSHIFUJI Hideaki Date: Tue, 22 Jan 2008 08:32:53 +0000 (+0900) Subject: [IPV6] NDISC: Sparse: Use different variable name for local use. X-Git-Tag: v2.6.25-rc1~1162^2~82 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=61cf46ad581ba43073d3bcb0be549eb60fbbf9f8;p=linux-2.6-omap-h63xx.git [IPV6] NDISC: Sparse: Use different variable name for local use. Fix the following sparse warnings: | net/ipv6/ndisc.c:1300:21: warning: symbol 'opt' shadows an earlier one | net/ipv6/ndisc.c:1078:7: originally declared here Signed-off-by: YOSHIFUJI Hideaki --- diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index bdfc4ea6194..0d33a7d3212 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -1297,11 +1297,11 @@ skip_defrtr: } if (ndopts.nd_useropts) { - struct nd_opt_hdr *opt; - for (opt = ndopts.nd_useropts; - opt; - opt = ndisc_next_useropt(opt, ndopts.nd_useropts_end)) { - ndisc_ra_useropt(skb, opt); + struct nd_opt_hdr *p; + for (p = ndopts.nd_useropts; + p; + p = ndisc_next_useropt(p, ndopts.nd_useropts_end)) { + ndisc_ra_useropt(skb, p); } }