Fix: Remove useless NULL and zero assignment
authorDavid Goulet <dgoulet@efficios.com>
Mon, 22 Oct 2012 20:34:18 +0000 (16:34 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 22 Oct 2012 20:34:18 +0000 (16:34 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/consumer.c

index 8d897e5df1e20e20c67ddbc6ed8f99af7e7de2aa..132e3ec6891f925006b8b43910b2a24b3e22f468 100644 (file)
@@ -56,7 +56,7 @@ int consumer_poll_timeout = -1;
  * Also updated by the signal handler (consumer_should_exit()). Read by the
  * polling threads.
  */
  * 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
 
 /*
  * 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.
  */
  * 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
 
 /*
  * Find a stream. The consumer_data.lock must be locked during this
This page took 0.0269 seconds and 4 git commands to generate.