Commit 37814ee0 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

sysfs: dir.c: fix up odd do/while indentation

This fixes up the odd do/while after an if statement warning in dir.c
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 060cc749
...@@ -990,13 +990,14 @@ static struct sysfs_dirent *sysfs_dir_next_pos(const void *ns, ...@@ -990,13 +990,14 @@ static struct sysfs_dirent *sysfs_dir_next_pos(const void *ns,
struct sysfs_dirent *parent_sd, ino_t ino, struct sysfs_dirent *pos) struct sysfs_dirent *parent_sd, ino_t ino, struct sysfs_dirent *pos)
{ {
pos = sysfs_dir_pos(ns, parent_sd, ino, pos); pos = sysfs_dir_pos(ns, parent_sd, ino, pos);
if (pos) do { if (pos)
struct rb_node *node = rb_next(&pos->s_rb); do {
if (!node) struct rb_node *node = rb_next(&pos->s_rb);
pos = NULL; if (!node)
else pos = NULL;
pos = to_sysfs_dirent(node); else
} while (pos && pos->s_ns != ns); pos = to_sysfs_dirent(node);
} while (pos && pos->s_ns != ns);
return pos; return pos;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment