diff options
| author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-07-07 16:37:26 +1000 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-01-19 13:33:26 +0100 |
| commit | aca7aaf6287b6a9f688c1b115a76fdc056565a7e (patch) | |
| tree | 2049d099ca6a80d0472188f088e0300e2fe90cb9 | |
| parent | 1e42c353469cb58ca4f3b450eea4211af7d0b147 (diff) | |
| download | focaccia-qemu-aca7aaf6287b6a9f688c1b115a76fdc056565a7e.tar.gz focaccia-qemu-aca7aaf6287b6a9f688c1b115a76fdc056565a7e.zip | |
ui: Make qemu_default_pixman_format() return 0 on unsupported formats
In order to remove the logic for detecting supported shared pixmap formats from device models, make qemu_default_pixman_format() capable for failing by returning 0 which is not a possible format value rather than asserting. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
| -rw-r--r-- | ui/qemu-pixman.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qemu-pixman.c b/ui/qemu-pixman.c index 1f6fea535b..6a889e93e7 100644 --- a/ui/qemu-pixman.c +++ b/ui/qemu-pixman.c @@ -84,7 +84,7 @@ pixman_format_code_t qemu_default_pixman_format(int bpp, bool native_endian) break; } } - g_assert_not_reached(); + return 0; } int qemu_pixman_get_type(int rshift, int gshift, int bshift) |