From: Mathieu Desnoyers Date: Fri, 9 Dec 2011 14:25:18 +0000 (-0500) Subject: lttng lib: ring buffer: remove stale null-pointer X-Git-Tag: v2.0-pre11~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=15f485821ed86ecc4979c0a9522e28c31b5c15bd;p=lttng-modules.git lttng lib: ring buffer: remove stale null-pointer Reported-by: Dan Carpenter Signed-off-by: Mathieu Desnoyers --- diff --git a/lib/ringbuffer/ring_buffer_frontend.c b/lib/ringbuffer/ring_buffer_frontend.c index 802f5cd4..957d7f3d 100644 --- a/lib/ringbuffer/ring_buffer_frontend.c +++ b/lib/ringbuffer/ring_buffer_frontend.c @@ -1143,12 +1143,6 @@ void lib_ring_buffer_print_buffer_errors(struct lib_ring_buffer *buf, const struct 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