From: hyunuktak Date: Tue, 27 Sep 2016 06:30:10 +0000 (+0900) Subject: Remove to check NULL for callback function X-Git-Tag: submit/tizen/20160928.053415^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1676cfe45acb24add9ddbe82169d9c70a8960085;p=platform%2Fcore%2Fapi%2Fwifi-manager.git Remove to check NULL for callback function This can be NULL if you don't want to get the notification about wifi activate. Change-Id: Ie3e325edc5545d9cf67b18d9dd6fca8cb9fc24b4 Signed-off-by: hyunuktak --- diff --git a/packaging/capi-network-wifi-manager.spec b/packaging/capi-network-wifi-manager.spec index 699dc57..08a0f1c 100755 --- a/packaging/capi-network-wifi-manager.spec +++ b/packaging/capi-network-wifi-manager.spec @@ -1,6 +1,6 @@ Name: capi-network-wifi-manager Summary: Network Wi-Fi library in TIZEN C API -Version: 1.0.2 +Version: 1.0.3 Release: 1 Group: System/Network License: Apache-2.0 diff --git a/src/wifi_manager.c b/src/wifi_manager.c index af74029..be1c87a 100755 --- a/src/wifi_manager.c +++ b/src/wifi_manager.c @@ -182,7 +182,7 @@ EXPORT_API int wifi_manager_activate(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 }