]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[IPV6] NDISC: Sparse: Use different variable name for local use.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Tue, 22 Jan 2008 08:32:53 +0000 (17:32 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:10:28 +0000 (15:10 -0800)
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>
net/ipv6/ndisc.c

index bdfc4ea61941e79e817affb8b715e8141084d6c5..0d33a7d32125b80f102d28e851202c16d2f14fed 100644 (file)
@@ -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);
                }
        }