diff options
author | Gilbok Lee <gilbok.lee@samsung.com> | 2017-09-12 20:49:50 +0900 |
---|---|---|
committer | Gilbok Lee <gilbok.lee@samsung.com> | 2017-09-13 13:18:07 +0900 |
commit | db30c1b6049aee89554d0127142e69fd0920a650 (patch) | |
tree | 67917803cc8ea9b081e67f8641079b1472fb9c0d | |
parent | 9089a193386f93193f4641790d02cd7c335864bb (diff) | |
download | libmm-radio-db30c1b6049aee89554d0127142e69fd0920a650.tar.gz libmm-radio-db30c1b6049aee89554d0127142e69fd0920a650.tar.bz2 libmm-radio-db30c1b6049aee89554d0127142e69fd0920a650.zip |
Fix Svace issue
Apply tizen coding rule.
[Version] 0.2.29
[Profile] Mobile, Wearable
[Issue Type] Fix Svace issue
Change-Id: I5e2c9a21d3e9230e0c1e437ac063a62b774c9e1d
-rwxr-xr-x | packaging/libmm-radio.spec | 2 | ||||
-rw-r--r-- | src/mm_radio_priv_hal.c | 12 |
2 files changed, 3 insertions, 11 deletions
diff --git a/packaging/libmm-radio.spec b/packaging/libmm-radio.spec index e1ce8d6..75a5fcc 100755 --- a/packaging/libmm-radio.spec +++ b/packaging/libmm-radio.spec @@ -1,6 +1,6 @@ Name: libmm-radio Summary: Multimedia Framework Radio Library -Version: 0.2.28 +Version: 0.2.29 Release: 0 Group: System/Libraries License: Apache-2.0 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) |