aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <[email protected]>2018-06-07 17:09:59 -0700
committerLinus Torvalds <[email protected]>2018-06-07 17:34:38 -0700
commit6a6cbe75dbdfaed6c4bbc2f109d69808f9cfa421 (patch)
tree8285d47f902f9b925101404b84a38a83f3dfeefd /lib/mpi/mpiutil.c
parent6a6b9c4c11f8da5156b72e868baf0c6c392a5014 (diff)
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. [[email protected]: simplify cleanup code] Link: http://lkml.kernel.org/r/20180221193009.GA28678@avx2 Signed-off-by: Alexey Dobriyan <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Andy Shevchenko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions