From: Glauber Costa Subject: [PATCH 1/4] remove duplicated code. Date: Tue, 26 May 2009 17:32:58 -0400 Message-ID: <1243373581-18085-2-git-send-email-glommer@redhat.com> References: <1243373581-18085-1-git-send-email-glommer@redhat.com> Cc: avi@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx2.redhat.com ([66.187.237.31]:49576 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754998AbZEZVdB (ORCPT ); Tue, 26 May 2009 17:33:01 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n4QLX3Rw005901 for ; Tue, 26 May 2009 17:33:03 -0400 In-Reply-To: <1243373581-18085-1-git-send-email-glommer@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: This is a leftover from old days. There is already a call from this function in kvm_main_loop_cpu(), which is called unconditionally on the end of ap_main_loop. No need to duplicate. Signed-off-by: Glauber Costa --- qemu-kvm.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index fd957d9..d16917f 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -433,7 +433,6 @@ static void *ap_main_loop(void *_env) sigfillset(&signals); sigprocmask(SIG_BLOCK, &signals, NULL); kvm_create_vcpu(kvm_context, env->cpu_index); - kvm_qemu_init_env(env); #ifdef USE_KVM_DEVICE_ASSIGNMENT /* do ioperm for io ports of assigned devices */ -- 1.5.6.6