projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dc145a
)
xen/arm: remove pointless if subcondition
author
Matthew Daley
<mattjd@gmail.com>
Fri, 8 Nov 2013 00:45:08 +0000
(13:45 +1300)
committer
Ian Campbell
<ian.campbell@citrix.com>
Mon, 11 Nov 2013 16:13:40 +0000
(16:13 +0000)
It's already handled just above.
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/device_tree.c
patch
|
blob
|
history
diff --git
a/xen/common/device_tree.c
b/xen/common/device_tree.c
index f7d021584846ea69bc0319b405545182f1f99fbc..44253da1c7501e6688d41d35a406122d7ab77655 100644
(file)
--- a/
xen/common/device_tree.c
+++ b/
xen/common/device_tree.c
@@
-906,7
+906,7
@@
static int dt_translate_one(const struct dt_device_node *parent,
dt_printk(XENLOG_ERR "DT: no ranges; cannot translate\n");
return 1;
}
- if ( r
anges == NULL || r
len == 0 )
+ if ( rlen == 0 )
{
offset = dt_read_number(addr, na);
memset(addr, 0, pna * 4);