Cleanup the JNI interface options in configure.ac
[lttng-ust.git] / libringbuffer / ring_buffer_frontend.c
index d469d04022d94e18379392189a6bd0ee55d5a4b0..f558793a1626efd06b3cba986ab7a84cbe7f6fa7 100644 (file)
@@ -44,6 +44,7 @@
 #include <fcntl.h>
 #include <urcu/compiler.h>
 #include <urcu/ref.h>
+#include <helper.h>
 
 #include "smp.h"
 #include <lttng/ringbuffer-config.h>
@@ -945,12 +946,6 @@ void lib_ring_buffer_print_buffer_errors(struct lttng_ust_lib_ring_buffer *buf,
        const struct lttng_ust_lib_ring_buffer_config *config = &chan->backend.config;
        unsigned long write_offset, cons_offset;
 
-       /*
-        * Can be called in the error path of allocation when
-        * trans_channel_data is not yet set.
-        */
-       if (!chan)
-               return;
        /*
         * No need to order commit_count, write_offset and cons_offset reads
         * because we execute at teardown when no more writer nor reader
This page took 0.02296 seconds and 4 git commands to generate.