proc: more "unsigned int" in /proc/*/cmdline
commitb42262af5ecfc64f92423dc1e5ef634d9195f4b0
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 8 Jun 2018 00:09:52 +0000 (7 17:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Jun 2018 00:34:38 +0000 (7 17:34 -0700)
treef428713bb9731452eab2868d581df1ee4ef331f6
parent72eb7de9c1580cf5705d4f592aca21a8438fde22
proc: more "unsigned int" in /proc/*/cmdline

access_remote_vm() doesn't return negative errors, it returns number of
bytes read/written (0 if error occurs).  This allows to delete some
comparisons which never trigger.

Reuse "nr_read" variable while I'm at it.

Link: http://lkml.kernel.org/r/20180221192605.GB28548@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>
fs/proc/base.c