Fix Svace issue 54/149554/2
authorGilbok Lee <gilbok.lee@samsung.com>
Tue, 12 Sep 2017 11:49:50 +0000 (20:49 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Wed, 13 Sep 2017 04:18:07 +0000 (13:18 +0900)
Apply tizen coding rule.

[Version] 0.2.29
[Profile] Mobile, Wearable
[Issue Type] Fix Svace issue

Change-Id: I5e2c9a21d3e9230e0c1e437ac063a62b774c9e1d

packaging/libmm-radio.spec
src/mm_radio_priv_hal.c

index e1ce8d6..75a5fcc 100755 (executable)
@@ -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
index dbbbc5d..db05699 100644 (file)
@@ -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)