From patchwork Mon Jun 15 13:23:16 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 30324 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5FDOPrq028570 for ; Mon, 15 Jun 2009 13:24:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751823AbZFONX0 (ORCPT ); Mon, 15 Jun 2009 09:23:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760941AbZFONX0 (ORCPT ); Mon, 15 Jun 2009 09:23:26 -0400 Received: from mx2.redhat.com ([66.187.237.31]:44167 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760900AbZFONXR (ORCPT ); Mon, 15 Jun 2009 09:23:17 -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 n5FDNK2V026680 for ; Mon, 15 Jun 2009 09:23:20 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5FDNJVK009569; Mon, 15 Jun 2009 09:23:20 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5FDNIwi025638; Mon, 15 Jun 2009 09:23:19 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 759C418D480; Mon, 15 Jun 2009 16:23:17 +0300 (IDT) From: Gleb Natapov To: avi@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH 7/8] s->cpu_env cannot be zero here. Date: Mon, 15 Jun 2009 16:23:16 +0300 Message-Id: <1245072197-7538-8-git-send-email-gleb@redhat.com> In-Reply-To: <1245072197-7538-1-git-send-email-gleb@redhat.com> References: <1245072197-7538-1-git-send-email-gleb@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Remove redundant check. Signed-off-by: Gleb Natapov --- hw/apic.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/hw/apic.c b/hw/apic.c index f186202..eac54fd 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -471,8 +471,7 @@ static void apic_init_ipi(APICState *s) s->cpu_env->halted = 1; if (kvm_enabled() && !qemu_kvm_irqchip_in_kernel()) - if (s->cpu_env) - kvm_apic_init(s->cpu_env); + kvm_apic_init(s->cpu_env); } /* send a SIPI message to the CPU to start it */