diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-11-06 20:18:29 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-11-06 20:18:29 +0100 |
commit | 7739bbaee2eb71ccd7ff4a4799a18dc130069eaf (patch) | |
tree | 85c8395663a174061c9bb3e54f8737ea8884a261 /src/device.c | |
parent | b82e58f259baa6e29978cef56cb3e1fad1e4d34c (diff) | |
download | connman-7739bbaee2eb71ccd7ff4a4799a18dc130069eaf.tar.gz connman-7739bbaee2eb71ccd7ff4a4799a18dc130069eaf.tar.bz2 connman-7739bbaee2eb71ccd7ff4a4799a18dc130069eaf.zip |
Remove unused device->control value
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/device.c b/src/device.c index 29129177..aa1ced68 100644 --- a/src/device.c +++ b/src/device.c @@ -44,7 +44,6 @@ struct connman_device { char *node; char *address; char *interface; - char *control; char *ident; int phyindex; unsigned int connections; @@ -409,7 +408,6 @@ static void device_destruct(struct connman_element *element) g_free(device->node); g_free(device->name); g_free(device->address); - g_free(device->control); g_free(device->interface); g_free(device->last_network); @@ -575,12 +573,11 @@ void __connman_device_set_phyindex(struct connman_device *device, * connman_device_set_interface: * @device: device structure * @interface: interface name - * @control: control interface * * Set interface name of device */ void connman_device_set_interface(struct connman_device *device, - const char *interface, const char *control) + const char *interface) { g_free(device->element.devname); device->element.devname = g_strdup(interface); @@ -588,9 +585,6 @@ void connman_device_set_interface(struct connman_device *device, g_free(device->interface); device->interface = g_strdup(interface); - g_free(device->control); - device->control = g_strdup(control); - if (device->name == NULL) { const char *str = type2description(device->type); if (str != NULL && device->interface != NULL) |