summaryrefslogtreecommitdiffstats
path: root/mm/maccess.c
diff options
context:
space:
mode:
authorAlexey Klimov2015-11-06 03:46:00 +0100
committerLinus Torvalds2015-11-06 04:34:48 +0100
commit86d2adccfbe7d5a1f050fa08db9638c9168736d9 (patch)
tree96dcb3362de8603a9e8be77498eb3edc57d46d1d /mm/maccess.c
parentmm/kmemleak.c: remove unneeded initialization of object to NULL (diff)
downloadkernel-qcow2-linux-86d2adccfbe7d5a1f050fa08db9638c9168736d9.tar.gz
kernel-qcow2-linux-86d2adccfbe7d5a1f050fa08db9638c9168736d9.tar.xz
kernel-qcow2-linux-86d2adccfbe7d5a1f050fa08db9638c9168736d9.zip
mm/mlock.c: reorganize mlockall() return values and remove goto-out label
In mlockall syscall wrapper after out-label for goto code just doing return. Remove goto out statements and return error values directly. Also instead of rewriting ret variable before every if-check move returns to 'error'-like path under if-check. Objdump asm listing showed me reducing by few asm lines. Object file size descreased from 220592 bytes to 220528 bytes for me (for aarch64). Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/maccess.c')
0 files changed, 0 insertions, 0 deletions