x86/hyperv: Improve code for referencing hyperv_pcpu_input_arg
authorNischala Yelchuri <niyelchu@linux.microsoft.com>
Tue, 20 Jun 2023 18:40:38 +0000 (11:40 -0700)
committerWei Liu <wei.liu@kernel.org>
Wed, 28 Jun 2023 17:53:25 +0000 (17:53 +0000)
commit55e544e1a922d272b62ec576a3de92329f838ce9
tree82c8e08726a5bc79d9120af9d84a16cdbbb43d90
parenta6fe043880820981f6e4918240f967ea79bb063e
x86/hyperv: Improve code for referencing hyperv_pcpu_input_arg

Several places in code for Hyper-V reference the
per-CPU variable hyperv_pcpu_input_arg. Older code uses a multi-line
sequence to reference the variable, and usually includes a cast.
Newer code does a much simpler direct assignment. The latter is
preferable as the complexity of the older code is unnecessary.

Update older code to use the simpler direct assignment.

Signed-off-by: Nischala Yelchuri <niyelchu@linux.microsoft.com>
Link: https://lore.kernel.org/r/1687286438-9421-1-git-send-email-niyelchu@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/hyperv/hv_apic.c
arch/x86/hyperv/ivm.c
arch/x86/hyperv/mmu.c
arch/x86/hyperv/nested.c
drivers/hv/hv_balloon.c