Skip to contentSkip to conversation

procfs: remove extra call of dir_emit_dots

PATCH New Andrey Vagin 1 participant 1 message Jul 26, 2013 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 procfs: remove extra call of dir_emit_dots

dir_emit_dots() is called twice. Looks like a typo.

Cc Al Viro <[email protected]>
Cc Cyrill Gorcunov <[email protected]>
Cc Pavel Emelyanov <[email protected]>
Cc Andrew Morton <[email protected]>
---
 fs/proc/fd.c | 2 --
 1 file changed, 2 deletions(-)
fs/proc/fd.c +0 -2
index 75f2890..0ff80f9 100644
@@ -230,8 +230,6 @@ static int proc_readfd_common(struct file *file, struct dir_context *ctx,
 
 	if (!dir_emit_dots(file, ctx))
 		goto out;
-	if (!dir_emit_dots(file, ctx))
-		goto out;
 	files = get_files_struct(p);
 	if (!files)
 		goto out;
Signature · 1 line
1.8.3.1