Skip to content

Commit

Permalink
KVM: x86 emulator: Remove unused arg from read_descriptor()
Browse files Browse the repository at this point in the history
Signed-off-by: Takuya Yoshikawa <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
  • Loading branch information
Takuya Yoshikawa authored and avikivity committed May 22, 2011
1 parent c1ed6de commit 509cf9f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,6 @@ static void *decode_register(u8 modrm_reg, unsigned long *regs,
}

static int read_descriptor(struct x86_emulate_ctxt *ctxt,
struct x86_emulate_ops *ops,
struct segmented_address addr,
u16 *size, unsigned long *address, int op_bytes)
{
Expand Down Expand Up @@ -2720,7 +2719,7 @@ static int em_lgdt(struct x86_emulate_ctxt *ctxt)
struct desc_ptr desc_ptr;
int rc;

rc = read_descriptor(ctxt, ctxt->ops, c->src.addr.mem,
rc = read_descriptor(ctxt, c->src.addr.mem,
&desc_ptr.size, &desc_ptr.address,
c->op_bytes);
if (rc != X86EMUL_CONTINUE)
Expand Down Expand Up @@ -2749,9 +2748,8 @@ static int em_lidt(struct x86_emulate_ctxt *ctxt)
struct desc_ptr desc_ptr;
int rc;

rc = read_descriptor(ctxt, ctxt->ops, c->src.addr.mem,
&desc_ptr.size,
&desc_ptr.address,
rc = read_descriptor(ctxt, c->src.addr.mem,
&desc_ptr.size, &desc_ptr.address,
c->op_bytes);
if (rc != X86EMUL_CONTINUE)
return rc;
Expand Down

0 comments on commit 509cf9f

Please sign in to comment.