From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwWkF-0002F7-2b for qemu-devel@nongnu.org; Thu, 04 Dec 2014 08:47:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwWk6-0004tB-Cf for qemu-devel@nongnu.org; Thu, 04 Dec 2014 08:46:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwWk6-0004sy-58 for qemu-devel@nongnu.org; Thu, 04 Dec 2014 08:46:50 -0500 From: Markus Armbruster Date: Thu, 4 Dec 2014 14:46:43 +0100 Message-Id: <1417700806-23127-2-git-send-email-armbru@redhat.com> In-Reply-To: <1417700806-23127-1-git-send-email-armbru@redhat.com> References: <1417700806-23127-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 1/4] x86: Drop superfluous conditionals around g_free() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, rth@twiddle.net Signed-off-by: Markus Armbruster --- hw/i386/pc_sysfw.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/i386/pc_sysfw.c b/hw/i386/pc_sysfw.c index 75913c5..662d997 100644 --- a/hw/i386/pc_sysfw.c +++ b/hw/i386/pc_sysfw.c @@ -204,9 +204,7 @@ static void old_pc_system_rom_init(MemoryRegion *rom_memory, bool isapc_ram_fw) fprintf(stderr, "qemu: could not load PC BIOS '%s'\n", bios_name); exit(1); } - if (filename) { - g_free(filename); - } + g_free(filename); /* map the last 128KB of the BIOS in ISA space */ isa_bios_size = bios_size; -- 1.9.3