OSDN Git Service

proc: kill the extra proc_readfd_common()->dir_emit_dots()
[uclinux-h8/linux.git] / fs / proc / fd.c
index 75f2890..0ff80f9 100644 (file)
@@ -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;