babl: remove some redundant processing in babl_fish_reference
authorØyvind Kolås <pippin@gimp.org>
Sun, 24 Feb 2019 17:25:14 +0000 (18:25 +0100)
committerØyvind Kolås <pippin@gimp.org>
Sun, 24 Feb 2019 17:25:14 +0000 (18:25 +0100)
babl/babl-fish-reference.c

index d05dc6158f7bf85ee72e472b57fbb77e7e2f4a84..f9e21225dd07a7a9f00ed517928ec790d48e5cba 100644 (file)
@@ -1229,15 +1229,14 @@ babl_fish_reference_process_float (const Babl *babl,
     }
     {
       sprintf (dst_name, "%s float", babl_get_name((void*)babl->fish.destination->format.model));
+      destination_float_format =
+        babl_format_with_space (dst_name,
+                   BABL (BABL ((babl->fish.destination))->format.space));
       conv_from_rgba  =
         babl_conversion_find (
         babl_format_with_space ("RGBA float",
                    BABL (BABL ((babl->fish.destination))->format.space)),
-        babl_format_with_space (dst_name,
-                   BABL (BABL ((babl->fish.destination))->format.space)));
-      destination_float_format =
-        babl_format_with_space (dst_name,
-                   BABL (BABL ((babl->fish.destination))->format.space));
+                   destination_float_format);
     }
 
     if (!conv_to_rgba || !conv_from_rgba)