From ed47ebcd99fd2fb58770dc733d9318b57858de68 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 3 Sep 2019 15:19:17 -0400 Subject: [PATCH] ctf: remove unnecessary assignment 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 Reviewed-on: https://review.lttng.org/c/babeltrace/+/1997 Tested-by: jenkins Reviewed-by: Philippe Proulx --- src/plugins/ctf/fs-src/query.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugins/ctf/fs-src/query.c b/src/plugins/ctf/fs-src/query.c index 43041de3..35e4ec97 100644 --- a/src/plugins/ctf/fs-src/query.c +++ b/src/plugins/ctf/fs-src/query.c @@ -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; -- 2.34.1