wifi: Don't print an error when the wifi interface has been removed
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 15 Jun 2012 11:13:43 +0000 (14:13 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 18 Jun 2012 07:58:21 +0000 (10:58 +0300)
If the wifi data structure is NULL, it was already removed due to
a call to wifi_remove() and is thus not an error condition.

plugins/wifi.c

index 0b69471..05b8f5b 100644 (file)
@@ -1465,7 +1465,7 @@ static void interface_removed(GSupplicantInterface *interface)
                return;
 
        if (wifi == NULL || wifi->device == NULL) {
-               connman_error("Wrong wifi pointer");
+               DBG("wifi interface already removed");
                return;
        }