From 8c1a02212d7b1f7d2f75c4ef479fdd76949fe04a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sun, 11 Dec 2016 04:41:38 -0500 Subject: [PATCH] Writer: null contexts are not an error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- plugins/writer/write.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/plugins/writer/write.c b/plugins/writer/write.c index 09ddd3e30..d2c07fece 100644 --- a/plugins/writer/write.c +++ b/plugins/writer/write.c @@ -237,12 +237,6 @@ struct bt_ctf_event_class *copy_event_class(FILE *err, struct bt_ctf_event_class } context = bt_ctf_event_class_get_context_type(event_class); - if (!context) { - fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__, - __LINE__); - goto end; - } - ret = bt_ctf_event_class_set_context_type(writer_event_class, context); if (ret < 0) { fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__, @@ -409,13 +403,6 @@ enum bt_component_status copy_stream_class(FILE *err, } type = bt_ctf_stream_class_get_event_context_type(stream_class); - if (!type) { - ret = BT_COMPONENT_STATUS_ERROR; - fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__, - __LINE__); - goto end_put_trace; - } - ret_int = bt_ctf_stream_class_set_event_context_type( writer_stream_class, type); if (ret_int < 0) { -- 2.34.1