ctf: remove unnecessary assignment
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 3 Sep 2019 19:19:17 +0000 (15:19 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Sep 2019 15:58:23 +0000 (11:58 -0400)
result is already set to NULL by the BT_VALUE_PUT_REF_AND_RESET just
above, so there is no need to set it again.

Change-Id: I9ab4839a8f9011fde846a0ee9cdb30d28786a362
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1997
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/ctf/fs-src/query.c

index 43041de30320dc7f63a4be39e11d37e575f19968..35e4ec97eaf49c22f9fe3320e6b6311d8101eae4 100644 (file)
@@ -412,7 +412,6 @@ bt_component_class_query_method_status trace_info_query(
 
 error:
        BT_VALUE_PUT_REF_AND_RESET(result);
-       result = NULL;
 
        if (status >= 0) {
                status = BT_COMPONENT_CLASS_QUERY_METHOD_STATUS_ERROR;
This page took 0.02531 seconds and 4 git commands to generate.