Skip to content

Commit

Permalink
sparc64: Fix sparse warnings in of_device.c
Browse files Browse the repository at this point in the history
Passing unsigned int pointer where plain int pointer is
expected.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 12, 2008
1 parent c91e2ec commit 21cd883
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/sparc64/kernel/of_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 21cd883

Please sign in to comment.