From: David Goulet Date: Mon, 22 Oct 2012 20:34:18 +0000 (-0400) Subject: Fix: Remove useless NULL and zero assignment X-Git-Tag: v2.1.0-rc6~34 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=a98dae5fe5dc81dcf7e5146d3d6915dd6b3d055a Fix: Remove useless NULL and zero assignment Signed-off-by: David Goulet --- diff --git a/src/common/consumer.c b/src/common/consumer.c index 8d897e5df..132e3ec68 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -56,7 +56,7 @@ int consumer_poll_timeout = -1; * Also updated by the signal handler (consumer_should_exit()). Read by the * polling threads. */ -volatile int consumer_quit = 0; +volatile int consumer_quit; /* * The following two hash tables are visible by all threads which are separated @@ -66,8 +66,8 @@ volatile int consumer_quit = 0; * stream element in this ht should only be updated by the metadata poll thread * for the metadata and the data poll thread for the data. */ -struct lttng_ht *metadata_ht = NULL; -struct lttng_ht *data_ht = NULL; +struct lttng_ht *metadata_ht; +struct lttng_ht *data_ht; /* * Find a stream. The consumer_data.lock must be locked during this