projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c91e2ec
)
sparc64: Fix sparse warnings in of_device.c
author
David S. Miller
<davem@davemloft.net>
Fri, 12 Sep 2008 06:53:41 +0000
(23:53 -0700)
committer
David 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
patch
|
blob
|
history
diff --git
a/arch/sparc64/kernel/of_device.c
b/arch/sparc64/kernel/of_device.c
index 5c4fbc23aeeae927436646d34a2cb504e7292731..ef05d14bd7f1841258156dcf19c30c1faf4154ab 100644
(file)
--- a/
arch/sparc64/kernel/of_device.c
+++ b/
arch/sparc64/kernel/of_device.c
@@
-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) {