Fix: handle size 0 CTF fs streams
[babeltrace.git] / plugins / ctf / fs / data-stream.c
index 366250973308a0cfee6348b7a46ac62a3f62d637..ca5b47e8d3383064b72b7d44277891cf3a7457a6 100644 (file)
@@ -120,15 +120,6 @@ enum bt_ctf_notif_iter_medium_status medop_request_bytes(
                goto end;
        }
 
-       /* Check if we need an initial memory map */
-       if (!stream->mmap_addr) {
-               if (mmap_next(stream)) {
-                       PERR("Cannot memory-map initial region of file \"%s\" (%p)\n",
-                               stream->file->path->str, stream->file->fp);
-                       goto error;
-               }
-       }
-
        /* Check if we have at least one memory-mapped byte left */
        if (remaining_mmap_bytes(stream) == 0) {
                /* Are we at the end of the file? */
This page took 0.029103 seconds and 4 git commands to generate.