[mutter] wayland/dma-buf: Remove redundant error check



commit aa8d2d6fffbcb4ccf16ff527311e101fa75d4d3c
Author: Robert Mader <robert mader posteo de>
Date:   Tue Apr 26 20:27:57 2022 +0200

    wayland/dma-buf: Remove redundant error check
    
    `meta_egl_*` functions are assumed to set an error on failure.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2386>

 src/wayland/meta-wayland-dma-buf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/wayland/meta-wayland-dma-buf.c b/src/wayland/meta-wayland-dma-buf.c
index 8f81bfbe85..627a98651f 100644
--- a/src/wayland/meta-wayland-dma-buf.c
+++ b/src/wayland/meta-wayland-dma-buf.c
@@ -1282,7 +1282,7 @@ add_format (MetaWaylandDmaBufManager *dma_buf_manager,
                                          &num_modifiers, &error))
     {
       g_warning ("Failed to query modifiers for format 0x%" PRIu32 ": %s",
-                 drm_format, error ? error->message : "unknown error");
+                 drm_format, error->message);
       goto add_fallback;
     }
 


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