diff options
| author | Ilpo Järvinen <[email protected]> | 2024-08-06 11:30:47 +0300 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2024-08-19 12:06:22 +0200 |
| commit | e35ee8ee498d68de24e6a831ff5d33665b41a802 (patch) | |
| tree | 93bc47e728f59e31f9b3bdb399c6e8547a1a16d8 /tools/perf/scripts/python/bin | |
| parent | 6c1fa8edfef815a97db57f30216265bfa152792d (diff) | |
platform/x86: intel/pmc: Remove unused param idx from pmc_for_each_mode()
pmc_for_each_mode() takes i (index) variable name as a parameter but
the loop index is not used by any of the callers. Make the index
variable internal to pmc_for_each_mode().
This also changes the loop logic such that ->lpm_en_modes[] is never
read beyond num_lpm_modes.
Signed-off-by: Ilpo Järvinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions