summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndrea Calabrese <andrea.calabrese@amarulasolutions.com>2026-05-20 08:28:50 +0200
committerAndrew Morton <akpm@linux-foundation.org>2026-07-25 21:51:29 -0700
commit1476d82e852287df417a10cbfac587600fc4b457 (patch)
tree0768789d5f9cb62d375f7d9fc35008f2674a93ef /tools
parentd2a804464e0f302faaa11a85aa7dba63dead2141 (diff)
downloadlinux-next-1476d82e852287df417a10cbfac587600fc4b457.tar.gz
linux-next-1476d82e852287df417a10cbfac587600fc4b457.zip
kernel: refactor: shorten has_pending_signals
In has_pending_signals there was a switch/case used for optimizations. However, today's compilers perform loop unrolling efficiently, thus it is not needed anymore. Put i inside the for declaration so we do not risk its escape from the scope. Moreover, i starts now from 0 and counts up, as it is a more usual pattern. Link: https://lore.kernel.org/20260520062849.183621-2-andrea.calabrese@amarulasolutions.com Signed-off-by: Andrea Calabrese <andrea.calabrese@amarulasolutions.com> Acked-by: Oleg Nesterov <oleg@redhat.com> Cc: Adrian Huang <adrianhuang0701@gmail.com> Cc: Christian Brauner <brauner@kernel.org> Cc: Marco Elver <elver@google.com> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions