Drivers: hv: vmbus: Get rid of an unsused variable
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 19 Jan 2017 18:51:53 +0000 (11:51 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jan 2017 13:51:21 +0000 (14:51 +0100)
The version variable while it is initialized is not used;
get rid of it.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv.c

index ae5436e9c8a42ceea51de56892b2cfdcc034d520..ced2077bb925683594237e276967c4e178c14f01 100644 (file)
@@ -261,16 +261,12 @@ void hv_synic_free(void)
  */
 int hv_synic_init(unsigned int cpu)
 {
-       u64 version;
        union hv_synic_simp simp;
        union hv_synic_siefp siefp;
        union hv_synic_sint shared_sint;
        union hv_synic_scontrol sctrl;
        u64 vp_index;
 
-       /* Check the version */
-       rdmsrl(HV_X64_MSR_SVERSION, version);
-
        /* Setup the Synic's message page */
        rdmsrl(HV_X64_MSR_SIMP, simp.as_uint64);
        simp.simp_enabled = 1;