From: Patrik Flykt Date: Fri, 15 Jun 2012 11:13:44 +0000 (+0300) Subject: technology: Remove unneeded scan stop when removing device X-Git-Tag: 1.2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3a22426303e048d58d0dcb907ce16e8ef92c624;p=platform%2Fupstream%2Fconnman.git technology: Remove unneeded scan stop when removing device Scanning has already been stopped when a device is to be removed from the technology struct. Let __connman_technology_remove_device() just remove the device and nothing else. --- diff --git a/src/technology.c b/src/technology.c index 2edb48f..635c7b0 100644 --- a/src/technology.c +++ b/src/technology.c @@ -1101,9 +1101,6 @@ int __connman_technology_remove_device(struct connman_device *device) return -ENXIO; } - if (connman_device_get_scanning(device) == TRUE) - __connman_technology_scan_stopped(device); - technology->device_list = g_slist_remove(technology->device_list, device); technology_put(technology);