提交 21cd8833 编写于 作者: D David S. Miller

sparc64: Fix sparse warnings in of_device.c

Passing unsigned int pointer where plain int pointer is
expected.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c91e2eca
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册