From 3f706d0c8eeaebd9eb8aeae0ad8e923b93cb102a Mon Sep 17 00:00:00 2001 From: Danny Jeongseok Seo Date: Thu, 6 Oct 2011 11:07:34 +0900 Subject: [PATCH] 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. --- src/device.c | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.7.4