diff options
| author | Muhammad Bilal <meatuni001@gmail.com> | 2026-09-19 11:11:08 +0500 |
|---|---|---|
| committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2026-10-13 12:02:49 +0300 |
| commit | 517df3809e577e317cebf06db789fa4ec63ea7fc (patch) | |
| tree | 44dfd562550612dfde88ac1450192972e802854f /tools/perf/scripts/python | |
| parent | 540b8ae192afb5566c1b13b6884aee87107a26b9 (diff) | |
platform/x86: hp-bioscfg: remove dead bounds check in audit_log_entries_show
audit_log_entries_show() checks "count * LOG_ENTRY_SIZE > PAGE_SIZE"
prior to entering the loop. Because "count" is already bounded to fit
within PAGE_SIZE, the inner loop check "(LOG_ENTRY_SIZE * i) > PAGE_SIZE"
can never be reached and is dead code.
Remove the redundant inner bounds check and eliminate the unnecessary
"else" block after "break" to clean up the loop control flow.
Signed-off-by: Muhammad Bilal <meatuni001@gmail.com>
Link: https://patch.msgid.link/20260919061108.87240-1-meatuni001@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
