diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2024-08-06 11:30:47 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2024-08-19 12:06:22 +0200 |
commit | e35ee8ee498d68de24e6a831ff5d33665b41a802 (patch) | |
tree | 93bc47e728f59e31f9b3bdb399c6e8547a1a16d8 /drivers/platform/surface/aggregator/controller.c | |
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 <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240806083047.1562-1-ilpo.jarvinen@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions