: sparc64: Fix sparse warnings in of_device.c
PATCH 9/16 : sparc64: Fix sparse warnings in of_device.c
sparc64: Fix sparse warnings in of_device.c
Passing unsigned int pointer where plain int pointer is expected.
Signed-off-by David S. Miller <[email protected]>
--- arch/sparc64/kernel/of_device.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
arch/sparc64/kernel/of_device.c +1 -2
@@ -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 ) {
Signature · 1 line
1.5.6.5.GIT