qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 1/8] ui: Make qemu_default_pixman_format() return 0 o


From: Gerd Hoffmann
Subject: [Qemu-devel] [PULL 1/8] ui: Make qemu_default_pixman_format() return 0 on unsupported formats
Date: Mon, 19 Jan 2015 13:55:02 +0100

From: Benjamin Herrenschmidt <address@hidden>

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 <address@hidden>
---
 ui/qemu-pixman.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/qemu-pixman.c b/ui/qemu-pixman.c
index 1f6fea5..6a889e9 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)
-- 
1.8.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]