From: Jérémie Galarneau Date: Mon, 14 Nov 2016 20:49:13 +0000 (-0500) Subject: Coding standard clean-ups X-Git-Tag: v2.0.0-pre1~722 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=35d4700747ecb871bcc76ffb400916eb41cf0239 Coding standard clean-ups Signed-off-by: Jérémie Galarneau --- diff --git a/plugins/ctf/common/notif-iter/notif-iter.c b/plugins/ctf/common/notif-iter/notif-iter.c index 1f80c706..f29b72ee 100644 --- a/plugins/ctf/common/notif-iter/notif-iter.c +++ b/plugins/ctf/common/notif-iter/notif-iter.c @@ -578,7 +578,6 @@ enum bt_ctf_notif_iter_status set_current_stream_class(struct bt_ctf_notif_iter } BT_PUT(notit->meta.stream_class); - notit->meta.stream_class = bt_ctf_trace_get_stream_class_by_id( notit->meta.trace, stream_id); if (!notit->meta.stream_class) { @@ -1844,8 +1843,7 @@ struct bt_ctf_notif_iter *bt_ctf_notif_iter_create(struct bt_ctf_trace *trace, goto end; } - notit->meta.trace = trace; - bt_get(notit->meta.trace); + notit->meta.trace = bt_get(trace); notit->medium.medops = medops; notit->medium.max_request_sz = max_request_sz; notit->medium.data = data;