Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267029
b: refs/heads/master
c: b9e2780
h: refs/heads/master
i:
  267027: f432fbe
v: v3
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Oct 25, 2011
1 parent 464c377 commit 80a9aaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: c9d6329c35869ebf2ff88a5831e8073d3365e8bd
refs/heads/master: b9e2780d576a010d4aba1e69f247170bf3718d6b
8 changes: 4 additions & 4 deletions trunk/fs/sysfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,8 @@ struct sysfs_dirent *sysfs_find_dirent(struct sysfs_dirent *parent_sd,
#undef node
}

if (found && ns) {
while (found->s_ns && found->s_ns != ns) {
if (found) {
while (found->s_ns != ns) {
p = rb_next(&found->name_node);
if (!p)
return NULL;
Expand Down Expand Up @@ -947,7 +947,7 @@ static struct sysfs_dirent *sysfs_dir_pos(const void *ns,
#undef node
}
}
while (pos && pos->s_ns && pos->s_ns != ns) {
while (pos && pos->s_ns != ns) {
struct rb_node *p = rb_next(&pos->inode_node);
if (!p)
pos = NULL;
Expand All @@ -967,7 +967,7 @@ static struct sysfs_dirent *sysfs_dir_next_pos(const void *ns,
pos = NULL;
else
pos = rb_entry(p, struct sysfs_dirent, inode_node);
} while (pos && pos->s_ns && pos->s_ns != ns);
} while (pos && pos->s_ns != ns);
return pos;
}

Expand Down

0 comments on commit 80a9aaa

Please sign in to comment.