X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fgraph%2Fcomponent.c;h=841931270163110277f19d370c4cf727d35fdd95;hb=d0fea13089e4ea4825826b1022ff0d8110ef2898;hp=13c2aa0d95fb9b5ef065560292759a80705025fe;hpb=56a924f44c2b1788884b9e9921a100c3c638d975;p=babeltrace.git diff --git a/lib/graph/component.c b/lib/graph/component.c index 13c2aa0d..84193127 100644 --- a/lib/graph/component.c +++ b/lib/graph/component.c @@ -267,7 +267,6 @@ int bt_component_create(struct bt_component_class *component_class, BT_ASSERT(user_component); BT_ASSERT(component_class); BT_ASSERT(name); - type = bt_component_class_get_type(component_class); BT_LIB_LOGD("Creating empty component from component class: %![cc-]+C, " "comp-name=\"%s\"", component_class, name); @@ -278,8 +277,7 @@ int bt_component_create(struct bt_component_class *component_class, goto end; } - bt_object_init_shared_with_parent(&component->base, - destroy_component); + bt_object_init_shared_with_parent(&component->base, destroy_component); component->class = component_class; bt_object_get_no_null_check(component->class); component->destroy = component_destroy_funcs[type]; @@ -547,8 +545,7 @@ void bt_component_remove_port(struct bt_component *component, struct bt_port *cur_port = g_ptr_array_index(ports, i); if (cur_port == port) { - remove_port_by_index(component, - ports, i); + remove_port_by_index(component, ports, i); goto end; } }