Skip to content

Commit 41b8426

Browse files
LeoBrasmpe
authored andcommitted
powerpc/cputable: Remove unnecessary copy of cpu_spec->oprofile_type
Before checking for cpu_type == NULL, this same copy happens, so doing it here will just write the same value to the t->oprofile_type again. Remove the repeated copy, as it is unnecessary. Signed-off-by: Leonardo Bras <[email protected]> Reviewed-by: Michael Neuling <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ba96301 commit 41b8426

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/powerpc/kernel/cputable.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2198,7 +2198,6 @@ static struct cpu_spec * __init setup_cpu_spec(unsigned long offset,
21982198
*/
21992199
if (old.oprofile_cpu_type != NULL) {
22002200
t->oprofile_cpu_type = old.oprofile_cpu_type;
2201-
t->oprofile_type = old.oprofile_type;
22022201
t->cpu_features |= old.cpu_features & CPU_FTR_PMAO_BUG;
22032202
}
22042203
}

0 commit comments

Comments
 (0)