From: Igor Mammedov <imammedo@redhat.com>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, aliguori@amazon.com
Subject: [Qemu-devel] [PATCH 1/2] vl.c: use single local_err throughout main()
Date: Wed, 15 Oct 2014 13:03:22 +0200 [thread overview]
Message-ID: <1413371003-43597-2-git-send-email-imammedo@redhat.com> (raw)
In-Reply-To: <1413371003-43597-1-git-send-email-imammedo@redhat.com>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
vl.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/vl.c b/vl.c
index 964d634..f563da1 100644
--- a/vl.c
+++ b/vl.c
@@ -2887,6 +2887,7 @@ int main(int argc, char **argv, char **envp)
};
const char *trace_events = NULL;
const char *trace_file = NULL;
+ Error *local_err = NULL;
const ram_addr_t default_ram_size = (ram_addr_t)DEFAULT_RAM_SIZE *
1024 * 1024;
ram_addr_t maxram_size = default_ram_size;
@@ -4188,7 +4189,6 @@ int main(int argc, char **argv, char **envp)
configure_accelerator(current_machine);
if (qtest_chrdev) {
- Error *local_err = NULL;
qtest_init(qtest_chrdev, qtest_log, &local_err);
if (local_err) {
error_report("%s", error_get_pretty(local_err));
@@ -4432,7 +4432,6 @@ int main(int argc, char **argv, char **envp)
#ifdef CONFIG_VNC
/* init remote displays */
if (vnc_display) {
- Error *local_err = NULL;
vnc_display_init(ds);
vnc_display_open(ds, vnc_display, &local_err);
if (local_err != NULL) {
@@ -4487,7 +4486,6 @@ int main(int argc, char **argv, char **envp)
}
if (incoming) {
- Error *local_err = NULL;
qemu_start_incoming_migration(incoming, &local_err);
if (local_err) {
error_report("-incoming %s: %s", incoming,
--
1.9.3 (Apple Git-50)
next prev parent reply other threads:[~2014-10-15 11:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-15 11:03 [Qemu-devel] [PATCH 0/2] vl.c: unify exit on error handling Igor Mammedov
2014-10-15 11:03 ` Igor Mammedov [this message]
2014-10-15 14:29 ` [Qemu-devel] [PATCH 1/2] vl.c: use single local_err throughout main() Eric Blake
2014-10-15 11:03 ` [Qemu-devel] [PATCH 2/2] vl.c: reduce exit on error code duplication Igor Mammedov
2014-10-15 14:35 ` Eric Blake
2014-10-20 9:37 ` Igor Mammedov
2014-10-20 8:38 ` Markus Armbruster
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=1413371003-43597-2-git-send-email-imammedo@redhat.com \
--to=imammedo@redhat.com \
--cc=aliguori@amazon.com \
--cc=peter.maydell@linaro.org \
--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).