]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mprotect.c: avoid repeated assignment in do_mprotect_pkey()
authorLiu Song <liu.song11@zte.com.cn>
Fri, 5 Nov 2021 20:39:03 +0000 (13:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Nov 2021 20:30:36 +0000 (13:30 -0700)
commit23af821c7097a3d93cfa96afd981c536a2c9bf80
tree095dde3f6af3437cf73fa3beb7c7964b43ca4b26
parentd756b65a801542a3a53bb776ecf4fb4d3b94bab0
mm/mprotect.c: avoid repeated assignment in do_mprotect_pkey()

After adjustment, the repeated assignment of "prev" is avoided, and the
readability of the code is improved.

Link: https://lkml.kernel.org/r/20211012152444.4127-1-fishland@aliyun.com
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Liu Song <liu.song11@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mprotect.c