ladishd: actually remove app ports, simply logging does not make it happen
This commit is contained in:
parent
bea7c694e0
commit
ee830a52ee
|
@ -2201,6 +2201,7 @@ ladish_graph_iterate_nodes(
|
|||
struct ladish_graph_client * client_ptr;
|
||||
void * client_context;
|
||||
struct list_head * port_node_ptr;
|
||||
struct list_head * port_temp_node_ptr;
|
||||
struct ladish_graph_port * port_ptr;
|
||||
|
||||
list_for_each(client_node_ptr, &graph_ptr->clients)
|
||||
|
@ -2229,7 +2230,7 @@ ladish_graph_iterate_nodes(
|
|||
continue;
|
||||
}
|
||||
|
||||
list_for_each(port_node_ptr, &client_ptr->ports)
|
||||
list_for_each_safe(port_node_ptr, port_temp_node_ptr, &client_ptr->ports)
|
||||
{
|
||||
port_ptr = list_entry(port_node_ptr, struct ladish_graph_port, siblings_client);
|
||||
|
||||
|
|
|
@ -1243,6 +1243,9 @@ remove_app_port(
|
|||
ladish_graph_get_port_name(vgraph, port_handle),
|
||||
ladish_graph_get_description(vgraph));
|
||||
|
||||
ladish_graph_remove_port(graph_handle, port_handle);
|
||||
ladish_graph_remove_port(vgraph, port_handle);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue