xen/mcelog: eliminate redundant setting of interface version
authorJan Beulich <JBeulich@suse.com>
Mon, 25 Jun 2018 10:19:48 +0000 (04:19 -0600)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Mon, 20 Aug 2018 18:46:18 +0000 (14:46 -0400)
This already gets done in HYPERVISOR_mca().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/mcelog.c

index 262835ace35d42c983bbff50d034316c7a53aade..b8bf61abb65ba8cc45484bf2a65cb7f9d7507b04 100644 (file)
@@ -288,7 +288,6 @@ static int mc_queue_handle(uint32_t flags)
        int ret = 0;
 
        mc_op.cmd = XEN_MC_fetch;
-       mc_op.interface_version = XEN_MCA_INTERFACE_VERSION;
        set_xen_guest_handle(mc_op.u.mc_fetch.data, &g_mi);
        do {
                mc_op.u.mc_fetch.flags = flags;
@@ -358,7 +357,6 @@ static int bind_virq_for_mce(void)
 
        /* Fetch physical CPU Numbers */
        mc_op.cmd = XEN_MC_physcpuinfo;
-       mc_op.interface_version = XEN_MCA_INTERFACE_VERSION;
        set_xen_guest_handle(mc_op.u.mc_physcpuinfo.info, g_physinfo);
        ret = HYPERVISOR_mca(&mc_op);
        if (ret) {