aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorJoel Granados <[email protected]>2024-06-04 08:29:21 +0200
committerJoel Granados <[email protected]>2024-06-13 10:50:52 +0200
commitd7a76ec87195ced6910b0ca10ca133bb316c90f5 (patch)
tree70fc6091ac3e45e52a446659907628231ff2397a /lib/memory-notifier-error-inject.c
parente2a6c472de7a5e5a1455a9fff1cfc55a1dd888af (diff)
sysctl: Remove check for sentinel element in ctl_table arrays
Use ARRAY_SIZE exclusively by removing the check to ->procname in the stopping criteria of the loops traversing ctl_table arrays. This commit finalizes the removal of the sentinel elements at the end of ctl_table arrays which reduces the build time size and run time memory bloat by ~64 bytes per sentinel (further information Link : https://lore.kernel.org/all/ZO5Yx5JFogGi%[email protected]/) Remove the entry->procname evaluation from the for loop stopping criteria in sysctl and sysctl_net. Signed-off-by: Joel Granados <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions