diff options
author | Simon Horman <[email protected]> | 2023-05-25 16:26:25 +0200 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-06-09 17:44:22 -0700 |
commit | 4df3504e2f17cb35d2c12b07e716ae37971d0d52 (patch) | |
tree | df8e8e141b57c383c9dccb46ae73404df3855038 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 048a9883267f9b8f8e05dca9e9e8e6f991eea61e (diff) |
kexec: avoid calculating array size twice
Avoid calculating array size twice in kexec_purgatory_setup_sechdrs().
Once using array_size(), and once open-coded.
Flagged by Coccinelle:
.../kexec_file.c:881:8-25: WARNING: array_size is already used (line 877) to compute the same size
No functional change intended.
Compile tested only.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Simon Horman <[email protected]>
Acked-by: Baoquan He <[email protected]>
Cc: Eric W. Biederman <[email protected]>
Cc: Zhen Lei <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions