summaryrefslogtreecommitdiffstats
path: root/fs/proc/consoles.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2018-06-08 02:09:59 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2018-06-08 02:34:38 +0200
commit6a6cbe75dbdfaed6c4bbc2f109d69808f9cfa421 (patch)
tree8285d47f902f9b925101404b84a38a83f3dfeefd /fs/proc/consoles.c
parentproc: somewhat simpler code for /proc/*/cmdline (diff)
downloadlinux-6a6cbe75dbdfaed6c4bbc2f109d69808f9cfa421.tar.xz
linux-6a6cbe75dbdfaed6c4bbc2f109d69808f9cfa421.zip
proc: simpler iterations for /proc/*/cmdline
"rv" variable is used both as a counter of bytes transferred and an error value holder but it can be reduced solely to error values if original start of userspace buffer is stashed and used at the very end. [akpm@linux-foundation.org: simplify cleanup code] Link: http://lkml.kernel.org/r/20180221193009.GA28678@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/consoles.c')
0 files changed, 0 insertions, 0 deletions