Skip to content

Commit

Permalink
xen/mcelog: eliminate redundant setting of interface version
Browse files Browse the repository at this point in the history
This already gets done in HYPERVISOR_mca().

Signed-off-by: Jan Beulich <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
Signed-off-by: Boris Ostrovsky <[email protected]>
  • Loading branch information
jbeulich authored and Boris Ostrovsky committed Aug 20, 2018
1 parent 2197082 commit f76c318
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/xen/mcelog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit f76c318

Please sign in to comment.