__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)