Merge "Fix iOS GM connection issue" into tizen
[platform/core/connectivity/bluetooth-frwk.git] / bt-core / bt-core-noti-handler.c
index 7615e5d..9231efa 100644 (file)
@@ -316,18 +316,18 @@ void _bt_core_handle_flight_mode_noti(void)
 
 void _bt_core_handle_power_saving_mode_noti(void)
 {
-       int ret = 0;
-
        if (TIZEN_PROFILE_WEARABLE)
                return;
 
        BT_DBG("+");
 #ifdef ENABLE_TIZEN_2_4
+       int ret = 0;
+
        ret = vconf_notify_key_changed(VCONFKEY_SETAPPL_PSMODE,
                        (vconf_callback_fn)__bt_core_power_saving_mode_cb, NULL);
-#endif
        if (ret < 0)
                BT_ERR("Unable to register key handler");
+#endif
 }
 
 void _bt_core_unregister_vconf_handler(void)