diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2016-01-20 12:58:39 +1100 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:30:22 -0600 |
commit | 4a3143b58c39f5f1f8b441f03bddc0e0016636b2 (patch) | |
tree | d7012230a0cd0e1ba48e973a23430f4cf54f60d9 /linux-user/mmap.c | |
parent | dcac49c008f0263f95d382b714c815aeacc83e34 (diff) | |
download | hqemu-4a3143b58c39f5f1f8b441f03bddc0e0016636b2.zip hqemu-4a3143b58c39f5f1f8b441f03bddc0e0016636b2.tar.gz |
pseries: Clean up error handling in spapr_vga_init()
Use error_setg() to return an error rather than an explicit exit().
Previously it was an exit(0) instead of a non-zero exit code, which was
simply a bug. Also improve the error message.
While we're at it change the type of spapr_vga_init() to bool since that's
how we're using it anyway.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'linux-user/mmap.c')
0 files changed, 0 insertions, 0 deletions