From: Mathieu Desnoyers Date: Wed, 30 Nov 2011 13:18:36 +0000 (-0500) Subject: Remove unneeded null pointer check X-Git-Tag: v1.9.1~48 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e575aeab639f05b5ea456e8123a95c0553db3bb7;p=lttng-ust.git Remove unneeded null pointer check Signed-off-by: Mathieu Desnoyers --- diff --git a/libringbuffer/ring_buffer_frontend.c b/libringbuffer/ring_buffer_frontend.c index 7de1d60c..f558793a 100644 --- a/libringbuffer/ring_buffer_frontend.c +++ b/libringbuffer/ring_buffer_frontend.c @@ -946,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