]> git.proxmox.com Git - mirror_qemu.git/commitdiff
x86: Drop superfluous conditionals around g_free()
authorMarkus Armbruster <armbru@redhat.com>
Thu, 4 Dec 2014 13:46:43 +0000 (14:46 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Dec 2014 11:21:02 +0000 (12:21 +0100)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/pc_sysfw.c

index 75913c5b2fe8eb555bea6275a28e0e910ff49e3d..662d99768e65296d379c274d5dd1017000efcd1b 100644 (file)
@@ -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;