From: Sangjung Woo Date: Fri, 8 Mar 2019 06:23:25 +0000 (+0900) Subject: [Common] Remove unnecessary init function call X-Git-Tag: v0.1.2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc16df84fa5aefc4ae4ef79cc7dbd6004ccab37d;p=platform%2Fupstream%2Fnnstreamer.git [Common] Remove unnecessary init function call This patch removes the unnecessary gst_tensor_config_init() function call since init function of each type (i.g. gst_tensor_config_from_[TYPE]_info()) calls gst_tensor_config_init() internally. Signed-off-by: Sangjung Woo --- diff --git a/gst/nnstreamer/tensor_common.c b/gst/nnstreamer/tensor_common.c index 541a70e..ebcb096 100644 --- a/gst/nnstreamer/tensor_common.c +++ b/gst/nnstreamer/tensor_common.c @@ -874,8 +874,6 @@ gst_tensor_config_from_structure (GstTensorConfig * config, media_type m_type; g_return_val_if_fail (config != NULL, FALSE); - gst_tensor_config_init (config); - g_return_val_if_fail (structure != NULL, FALSE); /* update config from tensor stream */ @@ -900,6 +898,7 @@ gst_tensor_config_from_structure (GstTensorConfig * config, gst_tensor_config_from_octet_stream_info (config, structure); break; default: + gst_tensor_config_init (config); GST_WARNING ("Unsupported type %d\n", m_type); return FALSE; }