Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316415
b: refs/heads/master
c: a3a7cab
h: refs/heads/master
i:
  316413: 4fd6bfb
  316411: 50e1468
  316407: 57dc9b1
  316399: c92acec
  316383: 6feca0e
  316351: 3a48e5f
  316287: e3ee2f9
  316159: 0ccb1b8
  315903: 4d9d6a2
  315391: 759ec0d
v: v3
  • Loading branch information
Sachin Kamat authored and Rob Herring committed Jul 6, 2012
1 parent 16ea442 commit e774075
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 177259c3ecca713b5995988309ea0ffd7383c286
refs/heads/master: a3a7cab17d36bb591867a6d3ea41b5fdb4e44d87
6 changes: 3 additions & 3 deletions trunk/drivers/of/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ struct property *of_find_property(const struct device_node *np,
return NULL;

read_lock(&devtree_lock);
for (pp = np->properties; pp != 0; pp = pp->next) {
for (pp = np->properties; pp; pp = pp->next) {
if (of_prop_cmp(pp->name, name) == 0) {
if (lenp != 0)
if (lenp)
*lenp = pp->length;
break;
}
Expand Down Expand Up @@ -497,7 +497,7 @@ struct device_node *of_find_node_with_property(struct device_node *from,
read_lock(&devtree_lock);
np = from ? from->allnext : allnodes;
for (; np; np = np->allnext) {
for (pp = np->properties; pp != 0; pp = pp->next) {
for (pp = np->properties; pp; pp = pp->next) {
if (of_prop_cmp(pp->name, prop_name) == 0) {
of_node_get(np);
goto out;
Expand Down

0 comments on commit e774075

Please sign in to comment.