From: Leandro Dorileo <ldorileo@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 2/3] cleanup: vga_bios_error in pc_init1()
Date: Tue, 31 Mar 2009 10:27:42 -0400 [thread overview]
Message-ID: <d68f80d90903310727x5f97f0a1hea1dc87afcc663b0@mail.gmail.com> (raw)
Moved vga_bios_error to the end of pc_init1() function, making the
code a bit more readable.
---
hw/pc.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/hw/pc.c b/hw/pc.c
index 7539a4f..f4cdcb5 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -864,9 +864,7 @@ static void pc_init1(ram_addr_t ram_size, int vga_ram_size,
ret = load_image(buf, phys_ram_base + vga_bios_offset);
if (ret != vga_bios_size) {
-vga_bios_error:
- fprintf(stderr, "qemu: could not load VGA BIOS '%s'\n", buf);
- exit(1);
+ goto vga_bios_error;
}
/* setup basic memory access */
@@ -1110,6 +1108,10 @@ vga_bios_error:
bios_error:
fprintf(stderr, "qemu: could not load PC BIOS '%s'\n", buf);
exit(1);
+
+vga_bios_error:
+ fprintf(stderr, "qemu: could not load VGA BIOS '%s'\n", buf);
+ exit(1);
}
static void pc_init_pci(ram_addr_t ram_size, int vga_ram_size,
--
1.6.2.1
--
(°= Leandro Dorileo
//\ ldorileo@gmail.com - http://www.dorilex.net
V_/ Software is a matter of freedom.
reply other threads:[~2009-03-31 14:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d68f80d90903310727x5f97f0a1hea1dc87afcc663b0@mail.gmail.com \
--to=ldorileo@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).