mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[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 <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Jeff Dike <[email protected]> Cc: Corey Minyard <[email protected]> Cc: Alan Cox <[email protected]> Cc: Kyle McMartin <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Greg KH <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
891dcd2f7a
commit
b653d081c1
15 changed files with 1 additions and 25 deletions
|
|
@ -252,7 +252,6 @@ static int __init led_create_procfs(void)
|
|||
proc_pdc_root->owner = THIS_MODULE;
|
||||
ent = create_proc_entry("led", S_IFREG|S_IRUGO|S_IWUSR, proc_pdc_root);
|
||||
if (!ent) return -1;
|
||||
ent->nlink = 1;
|
||||
ent->data = (void *)LED_NOLCD; /* LED */
|
||||
ent->read_proc = led_proc_read;
|
||||
ent->write_proc = led_proc_write;
|
||||
|
|
@ -262,7 +261,6 @@ static int __init led_create_procfs(void)
|
|||
{
|
||||
ent = create_proc_entry("lcd", S_IFREG|S_IRUGO|S_IWUSR, proc_pdc_root);
|
||||
if (!ent) return -1;
|
||||
ent->nlink = 1;
|
||||
ent->data = (void *)LED_HASLCD; /* LCD */
|
||||
ent->read_proc = led_proc_read;
|
||||
ent->write_proc = led_proc_write;
|
||||
|
|
|
|||
Loading…
Reference in a new issue