diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2008-01-22 03:32:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:10:28 -0500 |
commit | 61cf46ad581ba43073d3bcb0be549eb60fbbf9f8 (patch) | |
tree | 941a5d5619e050833477765f82bfcea322d97047 /net | |
parent | 5d5619b40c2474de01c64bdf6bb9f1211d3e967a (diff) |
[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>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/ndisc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index bdfc4ea61941..0d33a7d32125 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
@@ -1297,11 +1297,11 @@ skip_defrtr: | |||
1297 | } | 1297 | } |
1298 | 1298 | ||
1299 | if (ndopts.nd_useropts) { | 1299 | if (ndopts.nd_useropts) { |
1300 | struct nd_opt_hdr *opt; | 1300 | struct nd_opt_hdr *p; |
1301 | for (opt = ndopts.nd_useropts; | 1301 | for (p = ndopts.nd_useropts; |
1302 | opt; | 1302 | p; |
1303 | opt = ndisc_next_useropt(opt, ndopts.nd_useropts_end)) { | 1303 | p = ndisc_next_useropt(p, ndopts.nd_useropts_end)) { |
1304 | ndisc_ra_useropt(skb, opt); | 1304 | ndisc_ra_useropt(skb, p); |
1305 | } | 1305 | } |
1306 | } | 1306 | } |
1307 | 1307 | ||