X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fir%2Ftrace.c;h=21718ac9dd82f2e97638c903c630e214dbd1b924;hb=445c347168f99d59d70373b79b81618ede74ba94;hp=70ac2b45711215f558ad029026dfb591115f302a;hpb=bb34b5a7d56c93c2e94f79221582fa365d95558b;p=babeltrace.git diff --git a/formats/ctf/ir/trace.c b/formats/ctf/ir/trace.c index 70ac2b45..21718ac9 100644 --- a/formats/ctf/ir/trace.c +++ b/formats/ctf/ir/trace.c @@ -473,12 +473,7 @@ int bt_ctf_trace_add_stream_class(struct bt_ctf_trace *trace, */ bt_ctf_field_type_set_native_byte_order(trace->packet_header_type, trace->byte_order); - ret = bt_ctf_stream_class_set_byte_order(stream_class, - trace->byte_order == LITTLE_ENDIAN ? - BT_CTF_BYTE_ORDER_LITTLE_ENDIAN : BT_CTF_BYTE_ORDER_BIG_ENDIAN); - if (ret) { - goto end; - } + bt_ctf_stream_class_set_byte_order(stream_class, trace->byte_order); bt_ctf_stream_class_freeze(stream_class); if (!trace->frozen) {