aboutsummaryrefslogtreecommitdiffstats
path: root/lib/error-inject.c
diff options
context:
space:
mode:
authorMatteo Croce <[email protected]>2020-12-16 04:46:53 +0000
committerLinus Torvalds <[email protected]>2020-12-16 06:46:19 +0000
commitf9a90501faac55ddbea93c1f73497857f1997227 (patch)
tree37a3b1d168877a6d6d3dd61a8d4eb217086175fe /lib/error-inject.c
parentlib/ubsan.c: mark type_check_kinds with static keyword (diff)
downloadkernel-f9a90501faac55ddbea93c1f73497857f1997227.tar.gz
kernel-f9a90501faac55ddbea93c1f73497857f1997227.zip
reboot: refactor and comment the cpu selection code
Small improvements to the code, without changing the way it works: - use a local variable, to avoid a small time lapse where reboot_cpu can have an invalid value - comment the code which is not easy to understand at a glance - merge two identical code blocks into one - replace pointer arithmetics with equivalent array syntax Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matteo Croce <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Fabian Frederick <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Guenter Roeck <[email protected]> Cc: Kees Cook <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Pavel Tatashin <[email protected]> Cc: Petr Mladek <[email protected]> Cc: Robin Holt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/error-inject.c')
0 files changed, 0 insertions, 0 deletions