Change api description and doesn't change state after scan_stop.
[platform/core/api/radio.git] / src / radio.c
index 5fd19f3..3904817 100644 (file)
@@ -504,12 +504,10 @@ int radio_scan_stop(radio_h radio, radio_scan_stopped_cb callback, void *user_da
                __unset_callback(_RADIO_EVENT_TYPE_SCAN_STOP, radio);
 
        int ret = mm_radio_scan_stop(handle->mm_handle);
-       if (ret != MM_ERROR_NONE) {
+       if (ret != MM_ERROR_NONE)
                return __convert_error_code(ret, (char *)__FUNCTION__);
-       } else {
-               handle->state = RADIO_STATE_READY;
+       else
                return RADIO_ERROR_NONE;
-       }
 }
 
 int radio_set_mute(radio_h radio, bool muted)