diff options
| author | 2026-10-13 12:29:34 -0700 | |
|---|---|---|
| committer | 2026-10-15 16:53:54 +0300 | |
| commit | 84b0d0eb2d37a8e6e68af418dadfac5b4700527a (patch) | |
| tree | 9183db7a1de228ad022c0a581672eb36ce8e60c2 /scripts/Makefile.thinlto | |
| parent | platform/x86/intel/tpmi: Use DEFINE_RES_MEM() for the feature resources (diff) | |
platform/x86/intel/tpmi: Declare the loop counters in their loops
Declare the loop counters in the for statements that use them, so that
they are scoped to their loops.
In tpmi_create_device() this also replaces the tmp cursor, which moved
in step with the counter, with res[i].
While at it, use post-increment in all of them, as the other loops in
the file already do.
No functional change intended.
Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://patch.msgid.link/20261013192935.2243291-20-sathyanarayanan.kuppuswamy@linux.intel.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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
