summaryrefslogtreecommitdiff
path: root/plugins/ethernet.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-07-25 16:24:33 +0200
committerMarcel Holtmann <marcel@holtmann.org>2011-07-26 01:21:59 +0200
commit61e8631af19a43d4fb307c197c00bb467671b11b (patch)
treeb71b75b3d62428888b6dce418cf01e1dff7a4af4 /plugins/ethernet.c
parent7a74f89c8faf0834aa7de8d7724b868754632de3 (diff)
downloadconnman-61e8631af19a43d4fb307c197c00bb467671b11b.tar.gz
connman-61e8631af19a43d4fb307c197c00bb467671b11b.tar.bz2
connman-61e8631af19a43d4fb307c197c00bb467671b11b.zip
device: Change signature of connman_device_remove_network()
Diffstat (limited to 'plugins/ethernet.c')
-rw-r--r--plugins/ethernet.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/ethernet.c b/plugins/ethernet.c
index 5c026405..82950936 100644
--- a/plugins/ethernet.c
+++ b/plugins/ethernet.c
@@ -115,13 +115,10 @@ static void add_network(struct connman_device *device,
static void remove_network(struct connman_device *device,
struct ethernet_data *ethernet)
{
- const char *identifier;
-
if (ethernet->network == NULL)
return;
- identifier = connman_network_get_identifier(ethernet->network);
- connman_device_remove_network(device, identifier);
+ connman_device_remove_network(device, ethernet->network);
connman_network_unref(ethernet->network);
ethernet->network = NULL;