sparc64: Fix sparse warnings in of_device.c
authorDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2008 06:53:41 +0000 (23:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2008 06:53:41 +0000 (23:53 -0700)
Passing unsigned int pointer where plain int pointer is
expected.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/of_device.c

index 5c4fbc23aeeae927436646d34a2cb504e7292731..ef05d14bd7f1841258156dcf19c30c1faf4154ab 100644 (file)
@@ -401,8 +401,7 @@ static int __init build_one_resource(struct device_node *parent,
                                     int na, int ns, int pna)
 {
        const u32 *ranges;
-       unsigned int rlen;
-       int rone;
+       int rone, rlen;
 
        ranges = of_get_property(parent, "ranges", &rlen);
        if (ranges == NULL || rlen == 0) {