From: Andrew Morton Cc: Zhang Rui Signed-off-by: Andrew Morton --- fs/proc/generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/proc/generic.c~procfs-detect-duplicate-names-fix fs/proc/generic.c --- a/fs/proc/generic.c~procfs-detect-duplicate-names-fix +++ a/fs/proc/generic.c @@ -523,7 +523,7 @@ static const struct inode_operations pro static int proc_register(struct proc_dir_entry * dir, struct proc_dir_entry * dp) { - struct proc_dir_entry *tmp = NULL; + struct proc_dir_entry *tmp; unsigned int i; i = get_inode_number(); _