device: Remove needless call to __connman_network_set_device()
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 25 Jul 2011 14:24:31 +0000 (16:24 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 25 Jul 2011 23:21:26 +0000 (01:21 +0200)
src/device.c

index 7d02c33..87f503d 100644 (file)
@@ -1117,8 +1117,6 @@ int connman_device_remove_network(struct connman_device *device,
 
        service = __connman_service_lookup_from_network(network);
 
-       __connman_network_set_device(network, NULL);
-
        g_hash_table_remove(device->networks, identifier);
 
        if (service != NULL)