diff options
author | Alexey Dobriyan <[email protected]> | 2018-06-07 17:09:59 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-06-07 17:34:38 -0700 |
commit | 6a6cbe75dbdfaed6c4bbc2f109d69808f9cfa421 (patch) | |
tree | 8285d47f902f9b925101404b84a38a83f3dfeefd /lib/mpi/mpi-inline.h | |
parent | 6a6b9c4c11f8da5156b72e868baf0c6c392a5014 (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/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions