Skip to content

Commit

Permalink
KVM: x86 emulator: Remove unused arg from seg_override()
Browse files Browse the repository at this point in the history
In addition, one comma at the end of a statement is replaced with a
semicolon.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Takuya Yoshikawa authored and Avi Kivity committed May 22, 2011
1 parent fa3d315 commit c1ed6de
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,6 @@ static unsigned long seg_base(struct x86_emulate_ctxt *ctxt,
}

static unsigned seg_override(struct x86_emulate_ctxt *ctxt,
struct x86_emulate_ops *ops,
struct decode_cache *c)
{
if (!c->has_seg_override)
Expand Down Expand Up @@ -3527,7 +3526,7 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt, void *insn, int insn_len)
if (!c->has_seg_override)
set_seg_override(c, VCPU_SREG_DS);

memop.addr.mem.seg = seg_override(ctxt, ops, c);
memop.addr.mem.seg = seg_override(ctxt, c);

if (memop.type == OP_MEM && c->ad_bytes != 8)
memop.addr.mem.ea = (u32)memop.addr.mem.ea;
Expand Down Expand Up @@ -3587,7 +3586,7 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt, void *insn, int insn_len)
c->src.bytes = (c->d & ByteOp) ? 1 : c->op_bytes;
c->src.addr.mem.ea =
register_address(c, c->regs[VCPU_REGS_RSI]);
c->src.addr.mem.seg = seg_override(ctxt, ops, c),
c->src.addr.mem.seg = seg_override(ctxt, c);
c->src.val = 0;
break;
case SrcImmFAddr:
Expand Down Expand Up @@ -4103,7 +4102,7 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt)
c->dst.type = saved_dst_type;

if ((c->d & SrcMask) == SrcSI)
string_addr_inc(ctxt, seg_override(ctxt, ops, c),
string_addr_inc(ctxt, seg_override(ctxt, c),
VCPU_REGS_RSI, &c->src);

if ((c->d & DstMask) == DstDI)
Expand Down

0 comments on commit c1ed6de

Please sign in to comment.