Refactor struct lttng_ust_lib_ring_buffer_ctx
[lttng-ust.git] / liblttng-ust / lttng-ring-buffer-metadata-client.h
index 305c8655806a089870467506446f1b95469a28a2..5a3840c89ac050bfc3b77b9c4e94f20da57ed2a0 100644 (file)
@@ -235,12 +235,9 @@ int lttng_event_reserve(struct lttng_ust_lib_ring_buffer_ctx *ctx, uint32_t even
        ret = lib_ring_buffer_reserve(&client_config, ctx, NULL);
        if (ret)
                return ret;
-       if (caa_likely(ctx->ctx_len
-                       >= sizeof(struct lttng_ust_lib_ring_buffer_ctx))) {
-               if (lib_ring_buffer_backend_get_pages(&client_config, ctx,
-                               &ctx->backend_pages))
-                       return -EPERM;
-       }
+       if (lib_ring_buffer_backend_get_pages(&client_config, ctx,
+                       &ctx->backend_pages))
+               return -EPERM;
        return 0;
 }
 
This page took 0.035361 seconds and 4 git commands to generate.