From: Danny Jeongseok Seo Date: Thu, 6 Oct 2011 02:07:34 +0000 (+0900) Subject: device: Remove redundant connection numbers check X-Git-Tag: 2.0_alpha~1047 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=3f706d0c8eeaebd9eb8aeae0ad8e923b93cb102a;p=framework%2Fconnectivity%2Fconnman.git device: Remove redundant connection numbers check __connman_service_auto_connect() already checks for service state, so there is no need to look at the device being connected or not. --- diff --git a/src/device.c b/src/device.c index b4bf284..b830688 100644 --- a/src/device.c +++ b/src/device.c @@ -829,9 +829,6 @@ int connman_device_set_scanning(struct connman_device *device, __connman_device_cleanup_networks(device); - if (device->connections > 0) - return 0; - __connman_service_auto_connect(); return 0;