Cleanup: identical code for different branches
[babeltrace.git] / plugins / utils / trimmer / trimmer.c
index d3460fbb83e299380557e88530d5ea7e6b32f2bc..352b0cffa3405d2cdab76985548c00e249cb9f33 100644 (file)
@@ -53,14 +53,7 @@ void destroy_trimmer_data(struct trimmer *trimmer)
 static
 struct trimmer *create_trimmer_data(void)
 {
-       struct trimmer *trimmer;
-
-       trimmer = g_new0(struct trimmer, 1);
-       if (!trimmer) {
-               goto end;
-       }
-end:
-       return trimmer;
+       return g_new0(struct trimmer, 1);
 }
 
 void finalize_trimmer(struct bt_private_component *component)
This page took 0.022903 seconds and 4 git commands to generate.