Below is the modified patch, resolved coding style issue, Please review:
diff --git a/src/connection.c b/src/connection.c
index 79890dc..8da8012 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -499,7 +499,7 @@ done:
static void connection_remove(struct connman_element *element)
{
const char *gateway = NULL;
-
+ struct gateway_data *data;
DBG("element %p name %s", element, element->name);
unregister_interface(element);
@@ -511,7 +511,12 @@ static void connection_remove(struct connman_element
*element)
if (gateway == NULL)
return;
+ data = find_gateway(element->index, gateway);
+ if (data == NULL)
+ return;
+ gateway_list = g_slist_remove(gateway_list, data);
+
connman_element_set_enabled(element, FALSE);
emit_default_signal(element);
_______________________________________________
connman mailing list
[email protected]
https://lists.moblin.org/mailman/listinfo/connman