From 15f485821ed86ecc4979c0a9522e28c31b5c15bd Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 9 Dec 2011 09:25:18 -0500 Subject: [PATCH 1/1] lttng lib: ring buffer: remove stale null-pointer Reported-by: Dan Carpenter Signed-off-by: Mathieu Desnoyers --- lib/ringbuffer/ring_buffer_frontend.c | 6 ------ 1 file changed, 6 deletions(-) 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 -- 2.34.1