diff options
Diffstat (limited to 'src/mm_radio_priv_hal.c')
-rw-r--r-- | src/mm_radio_priv_hal.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mm_radio_priv_hal.c b/src/mm_radio_priv_hal.c index dbbbc5d..db05699 100644 --- a/src/mm_radio_priv_hal.c +++ b/src/mm_radio_priv_hal.c @@ -367,14 +367,12 @@ int _mmradio_destroy(mm_radio_t *radio) /* destroy command lock */ ret = pthread_mutex_destroy(&radio->cmd_lock); - if (ret) { + if (ret) MMRADIO_LOG_ERROR("mutex destroy failed\n"); - } ret = pthread_mutex_destroy(&radio->volume_lock); - if (ret) { + if (ret) MMRADIO_LOG_ERROR("volume mutex destroy failed\n"); - } #ifdef TIZEN_FEATURE_SOUND_FOCUS ret = mmradio_sound_focus_deregister(&radio->sound_focus); @@ -1049,7 +1047,6 @@ FINISHED: } FINISHED_ERR: - radio->scan_thread = 0; if (radio->old_state == MM_RADIO_STATE_PLAYING) { @@ -1098,8 +1095,6 @@ FINISHED_ERR: MMRADIO_LOG_FLEAVE(); pthread_exit(NULL); - - return; } bool __is_tunable_frequency(mm_radio_t *radio, int freq) @@ -1200,10 +1195,8 @@ void __mmradio_seek_thread(mm_radio_t *radio) MMRADIO_LOG_FLEAVE(); pthread_exit(NULL); - return; SEEK_FAILED: - if (radio->seek_unmute) { /* now turn on radio * In the case of limit freq, tuner should be unmuted. @@ -1220,7 +1213,6 @@ SEEK_FAILED: radio->is_seeking = FALSE; radio->seek_thread = 0; pthread_exit(NULL); - return; } static bool __mmradio_post_message(mm_radio_t *radio, enum MMMessageType msgtype, MMMessageParamType *param) |