summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorDanny Jeongseok Seo <s.seo@samsung.com>2011-10-06 11:07:34 +0900
committerSamuel Ortiz <sameo@linux.intel.com>2011-10-06 11:44:47 +0200
commit3f706d0c8eeaebd9eb8aeae0ad8e923b93cb102a (patch)
treeb2ef9b1086712833610464335acc5959c5590f48 /src/device.c
parentcc8ce72c12fe82290506de485f04da43ec5d4763 (diff)
downloadconnman-3f706d0c8eeaebd9eb8aeae0ad8e923b93cb102a.tar.gz
connman-3f706d0c8eeaebd9eb8aeae0ad8e923b93cb102a.tar.bz2
connman-3f706d0c8eeaebd9eb8aeae0ad8e923b93cb102a.zip
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.
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/device.c b/src/device.c
index b4bf2846..b830688b 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;