Skip to content

Commit

Permalink
Squash warnings in console.c
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aliguori committed Jan 16, 2009
1 parent 42aa98e commit fdb868e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit fdb868e

Please sign in to comment.