x86/setup: Move duplicate boot_cpu_data definition out of the ifdeffery
authorYuntao Wang <ytcoode@gmail.com>
Wed, 1 Jun 2022 12:29:14 +0000 (20:29 +0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 11 Jan 2023 11:45:16 +0000 (12:45 +0100)
commit50c66d7b049ddec095644a005bfe0b28e22c4b02
treebdcca06e05f70c44371be6e440135adca31d8783
parentb7d1f15b5c274999dfe8dda60a9a516eebfbc3d0
x86/setup: Move duplicate boot_cpu_data definition out of the ifdeffery

Both the if and else blocks define an exact same boot_cpu_data variable, move
the duplicate variable definition out of the if/else block.

In addition, do some other minor cleanups.

  [ bp: Massage. ]

Signed-off-by: Yuntao Wang <ytcoode@gmail.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20220601122914.820890-1-ytcoode@gmail.com
arch/x86/kernel/e820.c
arch/x86/kernel/setup.c