Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21cd8833 authored by David S. Miller's avatar David S. Miller
Browse files

sparc64: Fix sparse warnings in of_device.c



Passing unsigned int pointer where plain int pointer is
expected.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c91e2eca
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -401,8 +401,7 @@ static int __init build_one_resource(struct device_node *parent,
				     int na, int ns, int pna)
				     int na, int ns, int pna)
{
{
	const u32 *ranges;
	const u32 *ranges;
	unsigned int rlen;
	int rone, rlen;
	int rone;


	ranges = of_get_property(parent, "ranges", &rlen);
	ranges = of_get_property(parent, "ranges", &rlen);
	if (ranges == NULL || rlen == 0) {
	if (ranges == NULL || rlen == 0) {