[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 <yoshfuji@linux-ipv6.org>
This commit is contained in:
YOSHIFUJI Hideaki 2008-01-22 17:32:53 +09:00 committed by David S. Miller
parent 5d5619b40c
commit 61cf46ad58
1 changed files with 5 additions and 5 deletions

View File

@ -1297,11 +1297,11 @@ skip_defrtr:
} }
if (ndopts.nd_useropts) { if (ndopts.nd_useropts) {
struct nd_opt_hdr *opt; struct nd_opt_hdr *p;
for (opt = ndopts.nd_useropts; for (p = ndopts.nd_useropts;
opt; p;
opt = ndisc_next_useropt(opt, ndopts.nd_useropts_end)) { p = ndisc_next_useropt(p, ndopts.nd_useropts_end)) {
ndisc_ra_useropt(skb, opt); ndisc_ra_useropt(skb, p);
} }
} }