Skip to content

Commit

Permalink
Drivers: hv: Get rid of an unnecessary check in hv.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Dec 12, 2011
1 parent 93e5bd0 commit 175cad2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/hv/hv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 175cad2

Please sign in to comment.