X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Fcommon%2Fmsg-iter%2Fmsg-iter.c;fp=src%2Fplugins%2Fctf%2Fcommon%2Fmsg-iter%2Fmsg-iter.c;h=782a5a3435aeb32f7f623bc59aac9154d93984d3;hb=026f1a5ae0fde993dc87497aa1ac06c112734247;hp=0a16eed412fcfe3b2269a3d1248ddd3041446cdc;hpb=30174f59ca102e1a3cff21521c901523597483ad;p=babeltrace.git diff --git a/src/plugins/ctf/common/msg-iter/msg-iter.c b/src/plugins/ctf/common/msg-iter/msg-iter.c index 0a16eed4..782a5a34 100644 --- a/src/plugins/ctf/common/msg-iter/msg-iter.c +++ b/src/plugins/ctf/common/msg-iter/msg-iter.c @@ -3164,12 +3164,7 @@ enum ctf_msg_iter_status ctf_msg_iter_seek(struct ctf_msg_iter *msg_it, BT_ASSERT(msg_it); BT_ASSERT(offset >= 0); - - if (!msg_it->medium.medops.seek) { - status = CTF_MSG_ITER_STATUS_UNSUPPORTED; - BT_COMP_LOGD("Aborting seek as the iterator's underlying media does not implement seek support."); - goto end; - } + BT_ASSERT(msg_it->medium.medops.seek); medium_status = msg_it->medium.medops.seek(offset, msg_it->medium.data); if (medium_status != CTF_MSG_ITER_MEDIUM_STATUS_OK) {