summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGilbok Lee <gilbok.lee@samsung.com>2017-09-12 20:49:50 +0900
committerGilbok Lee <gilbok.lee@samsung.com>2017-09-13 13:18:07 +0900
commitdb30c1b6049aee89554d0127142e69fd0920a650 (patch)
tree67917803cc8ea9b081e67f8641079b1472fb9c0d /src
parent9089a193386f93193f4641790d02cd7c335864bb (diff)
downloadlibmm-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
Diffstat (limited to 'src')
-rw-r--r--src/mm_radio_priv_hal.c12
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)