From 97e26337d02581aedfacf816f0b543e8bc3c68da Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Fri, 15 Jun 2012 14:13:43 +0300 Subject: [PATCH] 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. --- plugins/wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4