[wifi-manager] remove to check NULL for callback function 12/90712/1
authorhyunuktak <hyunuk.tak@samsung.com>
Tue, 4 Oct 2016 04:49:06 +0000 (13:49 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Tue, 4 Oct 2016 04:49:09 +0000 (13:49 +0900)
This can be NULL if you don't want to get the notification about wifi
deactivate.

Change-Id: I90a18b9327ceb923d90cb626db1d7c96189359c3
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
packaging/capi-network-wifi-manager.spec
src/wifi_manager.c

index 08a0f1c8ff834e1767398ddfad4687c1a27d61e8..89c554bc008f7a7f89fce3b881097e0787ad37ac 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          capi-network-wifi-manager
 Summary:       Network Wi-Fi library in TIZEN C API
-Version:       1.0.3
+Version:       1.0.4
 Release:       1
 Group:         System/Network
 License:       Apache-2.0
index be1c87a8e4d51a4c0a18016aa170fe407553e4b4..e7ed776144730b5125c7343303dff57d6d48aca8 100755 (executable)
@@ -220,7 +220,7 @@ EXPORT_API int wifi_manager_deactivate(wifi_manager_h wifi,
 
        CHECK_FEATURE_SUPPORTED(WIFI_FEATURE);
 
-       if (!(__wifi_check_handle_validity(wifi)) || callback == NULL) {
+       if (!(__wifi_check_handle_validity(wifi))) {
                WIFI_LOG(WIFI_ERROR, "Invalid parameter"); //LCOV_EXCL_LINE
                return WIFI_MANAGER_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
        }