Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5a1955e authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Al Viro
Browse files

proc: kill the extra proc_readfd_common()->dir_emit_dots()



proc_readfd_common() does dir_emit_dots() twice in a row,
we need to do this only once.

Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 118b2302
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -228,8 +228,6 @@ static int proc_readfd_common(struct file *file, struct dir_context *ctx,
	if (!p)
		return -ENOENT;

	if (!dir_emit_dots(file, ctx))
		goto out;
	if (!dir_emit_dots(file, ctx))
		goto out;
	files = get_files_struct(p);