summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-16 21:06:20 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-16 21:06:20 +0000
commitfdb868e410c598f8a3a11d6c23f08380aa359623 (patch)
treeda65dd3fc75e17d07fc6e1b981f39eaa906b859a /console.c
parent42aa98e8843aa8e3e1f35991f4be63eab2417e94 (diff)
Squash warnings in console.c
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6354 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'console.c')
-rw-r--r--console.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/console.c b/console.c
index fe64fe445e..6738d324c5 100644
--- a/console.c
+++ b/console.c
@@ -1299,7 +1299,7 @@ static void text_console_do_init(CharDriverState *chr, DisplayState *ds, const c
s = new_console(ds, (p == 0) ? TEXT_CONSOLE : TEXT_CONSOLE_FIXED_SIZE);
if (!s) {
free(chr);
- return NULL;
+ return;
}
chr->opaque = s;
chr->chr_write = console_puts;
@@ -1357,8 +1357,6 @@ static void text_console_do_init(CharDriverState *chr, DisplayState *ds, const c
text_console_resize(s);
qemu_chr_reset(chr);
-
- return chr;
}
CharDriverState *text_console_init(const char *p)