]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: pagewalk: move variables to more local scope, tweak loops
authorRolf Eike Beer <eb@emlix.com>
Mon, 22 Aug 2022 13:04:12 +0000 (15:04 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Aug 2022 05:03:26 +0000 (22:03 -0700)
commit3f2b233472c6cabbd8f20c2f85c63959eb694695
tree4d29b2c26aa830c26bb44fce3afba1307dd7954f
parenta2b1fc648bbdccd6d97e337fd37b11e8e17579b5
mm: pagewalk: move variables to more local scope, tweak loops

Move some variables to more local scopes to make it obvious that they
don't carry state.  Put the end additions into the for loop instructions
to make them easier to read.

Link: https://lkml.kernel.org/r/8155217.NyiUUSuA9g@devpool047
Signed-off-by: Rolf Eike Beer <eb@emlix.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/pagewalk.c