Reuse previously allocated string when setting value
[babeltrace.git] / formats / ctf / ir / stream-class.c
index 67015978399eb35e2e13b354412d4bb9279ef57d..5cd572fe659bd3ea329296fc4fdb871f0e98090e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * stream.c
+ * stream-class.c
  *
  * Babeltrace CTF Writer
  *
@@ -351,10 +351,6 @@ int bt_ctf_stream_class_serialize(struct bt_ctf_stream_class *stream_class,
                struct bt_ctf_event_class *event_class =
                        stream_class->event_classes->pdata[i];
 
-               if (ret) {
-                       goto end;
-               }
-
                ret = bt_ctf_event_class_serialize(event_class, context);
                if (ret) {
                        goto end;
This page took 0.024697 seconds and 4 git commands to generate.