The patch titled Subject: fs/proc/generic.c: delete useless "len" variable has been added to the -mm tree. Its filename is proc-delete-useless-len-variable.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/proc-delete-useless-len-variable.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/proc-delete-useless-len-variable.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Alexey Dobriyan <adobriyan@xxxxxxxxx> Subject: fs/proc/generic.c: delete useless "len" variable Pointer to next '/' encodes length of path element and next start position. Subtraction and increment are redundant. Link: http://lkml.kernel.org/r/20191004234521.GA30246@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx> Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/generic.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- a/fs/proc/generic.c~proc-delete-useless-len-variable +++ a/fs/proc/generic.c @@ -163,7 +163,6 @@ static int __xlate_proc_name(const char { const char *cp = name, *next; struct proc_dir_entry *de; - unsigned int len; de = *ret; if (!de) @@ -174,13 +173,12 @@ static int __xlate_proc_name(const char if (!next) break; - len = next - cp; - de = pde_subdir_find(de, cp, len); + de = pde_subdir_find(de, cp, next - cp); if (!de) { WARN(1, "name '%s'\n", name); return -ENOENT; } - cp += len + 1; + cp = next + 1; } *residual = cp; *ret = de; _ Patches currently in -mm which might be from adobriyan@xxxxxxxxx are ramfs-support-o_tmpfile.patch proc-change-nlink-under-proc_subdir_lock.patch proc-delete-useless-len-variable.patch proc-shuffle-struct-pde_opener.patch elf-delete-unused-interp_map_addr-argument.patch elf-extract-elf_read-function.patch