提交 d383877d 编写于 作者: K K. Y. Srinivasan 提交者: Greg Kroah-Hartman

Drivers: hv: vmbus: Get rid of an unsused variable

The version variable while it is initialized is not used;
get rid of it.
Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 305f7549
...@@ -261,16 +261,12 @@ void hv_synic_free(void) ...@@ -261,16 +261,12 @@ void hv_synic_free(void)
*/ */
int hv_synic_init(unsigned int cpu) int hv_synic_init(unsigned int cpu)
{ {
u64 version;
union hv_synic_simp simp; union hv_synic_simp simp;
union hv_synic_siefp siefp; union hv_synic_siefp siefp;
union hv_synic_sint shared_sint; union hv_synic_sint shared_sint;
union hv_synic_scontrol sctrl; union hv_synic_scontrol sctrl;
u64 vp_index; u64 vp_index;
/* Check the version */
rdmsrl(HV_X64_MSR_SVERSION, version);
/* Setup the Synic's message page */ /* Setup the Synic's message page */
rdmsrl(HV_X64_MSR_SIMP, simp.as_uint64); rdmsrl(HV_X64_MSR_SIMP, simp.as_uint64);
simp.simp_enabled = 1; simp.simp_enabled = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册