Cleanup: clock-snapshot.c: logically dead code
[babeltrace.git] / src / lib / trace-ir / clock-snapshot.c
index 899d0083dba106ff0fa6c993ed6d21b5f63dde27..29b248e95c64f53451f1fe1f9edfe517a8934bbe 100644 (file)
@@ -83,7 +83,7 @@ struct bt_clock_snapshot *bt_clock_snapshot_create(
                BT_LIB_LOGE_APPEND_CAUSE(
                        "Cannot allocate one clock snapshot from clock class's clock snapshot pool: "
                        "%![cc-]+K", clock_class);
-               goto error;
+               goto end;
        }
 
        if (G_LIKELY(!clock_snapshot->clock_class)) {
@@ -91,14 +91,6 @@ struct bt_clock_snapshot *bt_clock_snapshot_create(
                bt_object_get_no_null_check(clock_class);
        }
 
-       goto end;
-
-error:
-       if (clock_snapshot) {
-               bt_clock_snapshot_recycle(clock_snapshot);
-               clock_snapshot = NULL;
-       }
-
 end:
        return clock_snapshot;
 }
This page took 0.02417 seconds and 4 git commands to generate.