device: Remove redundant connection numbers check
authorDanny Jeongseok Seo <s.seo@samsung.com>
Thu, 6 Oct 2011 02:07:34 +0000 (11:07 +0900)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 6 Oct 2011 09:44:47 +0000 (11:44 +0200)
__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

index b4bf284..b830688 100644 (file)
@@ -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;