From patchwork Thu Apr 2 18:36:29 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 15982 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 n32IbPOR014942 for ; Thu, 2 Apr 2009 18:37:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759674AbZDBShH (ORCPT ); Thu, 2 Apr 2009 14:37:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759186AbZDBShF (ORCPT ); Thu, 2 Apr 2009 14:37:05 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:53693 "EHLO fmmailgate01.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758669AbZDBShE (ORCPT ); Thu, 2 Apr 2009 14:37:04 -0400 Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate01.web.de (Postfix) with ESMTP id BCBA8FF54E8D for ; Thu, 2 Apr 2009 20:36:29 +0200 (CEST) Received: from [88.65.254.118] (helo=[192.168.1.2]) by smtp07.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #277) id 1LpRm9-0007qU-00 for kvm@vger.kernel.org; Thu, 02 Apr 2009 20:36:29 +0200 Message-ID: <49D505AD.2000608@web.de> Date: Thu, 02 Apr 2009 20:36:29 +0200 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: kvm-devel Subject: [PATCH] extboot: silence compiler warning X-Enigmail-Version: 0.95.7 X-Sender: jan.kiszka@web.de X-Provags-ID: V01U2FsdGVkX1+QaDjFK34OxAR1G6vEOkIxEo9NrbmquIAW6OwB 6C7WFJlN8RG7AYlf8/2Tw6fssakYrw5uAiBeitYLQger114L2Q GTp5pHjZI= Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Jan Kiszka --- qemu/hw/extboot.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/qemu/hw/extboot.c b/qemu/hw/extboot.c index 32e6226..13ffafa 100644 --- a/qemu/hw/extboot.c +++ b/qemu/hw/extboot.c @@ -77,8 +77,8 @@ static void extboot_write_cmd(void *opaque, uint32_t addr, uint32_t value) BlockDriverState *bs = opaque; int cylinders, heads, sectors, err; uint64_t nb_sectors; - target_phys_addr_t pa; - int blen; + target_phys_addr_t pa = 0; + int blen = 0; void *buf = NULL; if (cmd->type == 0x01 || cmd->type == 0x02) {