X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Flttng-utils%2Fplugin.c;h=fb00dee315b64ee4c650fa6357a7233fd3cb2c11;hb=147337a3be96c8ea69fee38099762370ecac8d51;hp=d55755992222d15bdd24364033af9f831f795443;hpb=a256a42d2324f0ba50153f29e2f7ef513a9905c0;p=babeltrace.git diff --git a/plugins/lttng-utils/plugin.c b/plugins/lttng-utils/plugin.c index d5575599..fb00dee3 100644 --- a/plugins/lttng-utils/plugin.c +++ b/plugins/lttng-utils/plugin.c @@ -440,7 +440,6 @@ enum bt_component_status debug_info_component_init( { enum bt_component_status ret; struct debug_info_component *debug_info = create_debug_info_component_data(); - struct bt_private_port *priv_port = NULL; if (!debug_info) { ret = BT_COMPONENT_STATUS_NOMEM; @@ -452,21 +451,17 @@ enum bt_component_status debug_info_component_init( goto error; } - priv_port = bt_private_component_filter_add_input_private_port( - component, "in", NULL); - if (!priv_port) { - ret = BT_COMPONENT_STATUS_ERROR; + ret = bt_private_component_filter_add_input_private_port( + component, "in", NULL, NULL); + if (ret != BT_COMPONENT_STATUS_OK) { goto end; } - BT_PUT(priv_port); - priv_port = bt_private_component_filter_add_output_private_port( - component, "out", NULL); - if (!priv_port) { - ret = BT_COMPONENT_STATUS_ERROR; + ret = bt_private_component_filter_add_output_private_port( + component, "out", NULL, NULL); + if (ret != BT_COMPONENT_STATUS_OK) { goto end; } - BT_PUT(priv_port); ret = init_from_params(debug_info, params); end: