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

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
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -990,7 +990,8 @@ static struct sysfs_dirent *sysfs_dir_next_pos(const void *ns,
	struct sysfs_dirent *parent_sd,	ino_t ino, struct sysfs_dirent *pos)
{
	pos = sysfs_dir_pos(ns, parent_sd, ino, pos);
	if (pos) do {
	if (pos)
		do {
			struct rb_node *node = rb_next(&pos->s_rb);
			if (!node)
				pos = NULL;