Unverified Commit 4455e2b1 authored by Xi Pardee's avatar Xi Pardee Committed by Ilpo Järvinen
Browse files

platform/x86:intel/pmc: Move pmc assignment closer to first usage



Move pmc variable assignment closer to the conditional statement of
its first use for better readability.

Signed-off-by: default avatarXi Pardee <xi.pardee@linux.intel.com>
Link: https://lore.kernel.org/r/20240624203218.2428475-5-xi.pardee@linux.intel.com


Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
parent a57a94d1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -621,9 +621,10 @@ static int pmc_core_ltr_show(struct seq_file *s, void *unused)
	unsigned int i, index, ltr_index = 0;

	for (i = 0; i < ARRAY_SIZE(pmcdev->pmcs); ++i) {
		struct pmc *pmc = pmcdev->pmcs[i];
		struct pmc *pmc;
		const struct pmc_bit_map *map;

		pmc = pmcdev->pmcs[i];
		if (!pmc)
			continue;