fs/proc/generic.c: delete useless "len" variable
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 5 Dec 2019 00:50:02 +0000 (16:50 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 5 Dec 2019 03:44:11 +0000 (19:44 -0800)
commit5f6354eaa517ce5c1e7b7feb224a0324601f796e
tree883c1b1e389d93ec63d7d035be00fb3c3c16860a
parente06689bf57017ac022ccf0f2a5071f760821ce0f
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@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/generic.c