mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 09:02:00 +00:00
Drivers: hv: Get rid of an unnecessary check in hv.c
In preparation for eventually supporting kexec in Linux VMs on Hyper-V, get rid of an unnecessary check in hv_init(). Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
93e5bd06a9
commit
175cad2667
@ -164,11 +164,6 @@ int hv_init(void)
|
||||
|
||||
max_leaf = query_hypervisor_info();
|
||||
|
||||
rdmsrl(HV_X64_MSR_GUEST_OS_ID, hv_context.guestid);
|
||||
|
||||
if (hv_context.guestid != 0)
|
||||
goto cleanup;
|
||||
|
||||
/* Write our OS info */
|
||||
wrmsrl(HV_X64_MSR_GUEST_OS_ID, HV_LINUX_GUEST_ID);
|
||||
hv_context.guestid = HV_LINUX_GUEST_ID;
|
||||
|
Loading…
Reference in New Issue
Block a user