device: Do not disable technology twice
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 8 Nov 2010 10:25:47 +0000 (11:25 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 8 Nov 2010 10:25:47 +0000 (11:25 +0100)
The technology disabling is done by the technology plugins.

Fixes BMC#8074

src/device.c

index aa1ced6..0127129 100644 (file)
@@ -299,13 +299,9 @@ static void probe_driver(struct connman_element *element, gpointer user_data)
 
 static void remove_device(struct connman_device *device)
 {
-       int err;
-
        DBG("device %p", device);
 
-       err = __connman_device_disable(device);
-       if (err < 0 && err == -EINPROGRESS)
-               __connman_technology_disable_device(device);
+       __connman_device_disable(device);
 
        __connman_technology_remove_device(device);