[PATCH] proc: remove useless (and buggy) ->nlink settings
Bug: pnx8550 code creates directory but resets ->nlink to 1. create_proc_entry() et al will correctly set ->nlink for you. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Jeff Dike <jdike@addtoit.com> Cc: Corey Minyard <minyard@acm.org> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Kyle McMartin <kyle@mcmartin.ca> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Greg KH <greg@kroah.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
891dcd2f7a
commit
b653d081c1
@@ -708,7 +708,6 @@ static struct proc_dir_entry *create_flash_pde(const char *filename,
|
||||
|
||||
ent = create_proc_entry(filename, S_IRUSR | S_IWUSR, NULL);
|
||||
if (ent != NULL) {
|
||||
ent->nlink = 1;
|
||||
ent->proc_fops = fops;
|
||||
ent->owner = THIS_MODULE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user