From: Patrik Flykt Date: Fri, 15 Jun 2012 11:13:43 +0000 (+0300) Subject: wifi: Don't print an error when the wifi interface has been removed X-Git-Tag: 2.0_alpha~74 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97e26337d02581aedfacf816f0b543e8bc3c68da;p=framework%2Fconnectivity%2Fconnman.git wifi: Don't print an error when the wifi interface has been removed 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. --- diff --git a/plugins/wifi.c b/plugins/wifi.c index 0b69471..05b8f5b 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -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; }