From patchwork Wed Jan 23 17:25:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Armbruster X-Patchwork-Id: 215009 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 607682C0087 for ; Thu, 24 Jan 2013 04:25:27 +1100 (EST) Received: from localhost ([::1]:47320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ty44j-0002e2-3p for incoming@patchwork.ozlabs.org; Wed, 23 Jan 2013 12:25:25 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ty44Z-0002dn-5Q for qemu-devel@nongnu.org; Wed, 23 Jan 2013 12:25:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ty44X-00036h-0M for qemu-devel@nongnu.org; Wed, 23 Jan 2013 12:25:15 -0500 Received: from oxygen.pond.sub.org ([2a01:4f8:121:10e4::3]:41397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ty44W-00034Y-Pn for qemu-devel@nongnu.org; Wed, 23 Jan 2013 12:25:12 -0500 Received: from blackfin.pond.sub.org (p5B32AAD4.dip.t-dialin.net [91.50.170.212]) by oxygen.pond.sub.org (Postfix) with ESMTPA id 3EA039FE47; Wed, 23 Jan 2013 18:25:10 +0100 (CET) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id AE9B8200A9; Wed, 23 Jan 2013 18:25:09 +0100 (CET) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Wed, 23 Jan 2013 18:25:09 +0100 Message-Id: <1358961909-17519-3-git-send-email-armbru@redhat.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1358961909-17519-1-git-send-email-armbru@redhat.com> References: <1358961909-17519-1-git-send-email-armbru@redhat.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:4f8:121:10e4::3 Cc: blauwirbel@gmail.com, aliguori@us.ibm.com, gleb@redhat.com Subject: [Qemu-devel] [PATCH 2/2] fw_cfg: Drop a few superfluous initializers X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Markus Armbruster Reviewed-by: Laszlo Ersek --- hw/fw_cfg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/fw_cfg.c b/hw/fw_cfg.c index b7da5c7..bdcd836 100644 --- a/hw/fw_cfg.c +++ b/hw/fw_cfg.c @@ -60,8 +60,8 @@ static char *read_splashfile(char *filename, size_t *file_sizep, GError *err = NULL; gboolean res; gchar *content; - int file_type = -1; - unsigned int filehead = 0; + int file_type; + unsigned int filehead; int bmp_bpp; res = g_file_get_contents(filename, &content, file_sizep, &err); @@ -113,7 +113,7 @@ static void fw_cfg_bootsplash(FWCfgState *s) char *p; char *filename, *file_data; size_t file_size; - int file_type = -1; + int file_type; const char *temp; /* get user configuration */