From 26e9b151a63de5ae508454c4f10e83dc4ac0a7a3 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 3 Apr 2022 12:50:03 -0700 Subject: [PATCH] GDK plugin writer: abbreviate --- plugin/gdk/gvdevice_gdk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugin/gdk/gvdevice_gdk.c b/plugin/gdk/gvdevice_gdk.c index 209002d49..001bf14dd 100644 --- a/plugin/gdk/gvdevice_gdk.c +++ b/plugin/gdk/gvdevice_gdk.c @@ -56,9 +56,7 @@ argb2rgba ( unsigned int width, unsigned int height, char *data) static gboolean writer ( const gchar *buf, gsize count, GError **error, gpointer data) { - if (count == gvwrite((GVJ_t *)data, buf, count)) - return TRUE; - return FALSE; + return count == gvwrite((GVJ_t *)data, buf, count); } static void gdk_format(GVJ_t * job) -- 2.40.0