diff options
author | Gilbok Lee <gilbok.lee@samsung.com> | 2018-03-14 16:55:39 +0900 |
---|---|---|
committer | Gilbok Lee <gilbok.lee@samsung.com> | 2018-03-15 02:37:25 +0000 |
commit | cd6cb94937c27469f1f90990efea5b37c2592ab7 (patch) | |
tree | d844d43577595c00ad802b87e5e61e0431acf14e /src/mm_radio_priv_hal.c | |
parent | 167d47b6e51740e4bfb0619eaf88f08d659279ec (diff) | |
download | libmm-radio-cd6cb94937c27469f1f90990efea5b37c2592ab7.tar.gz libmm-radio-cd6cb94937c27469f1f90990efea5b37c2592ab7.tar.bz2 libmm-radio-cd6cb94937c27469f1f90990efea5b37c2592ab7.zip |
Fix coverity issue (Unchecked return value)submit/tizen/20180315.033609accepted/tizen/unified/20180320.141240
If sound_manager_start_virtual_stream failed, radio doesn't need to
call sound_manager_stop_virtual_stream.
[Version] 0.2.34
[Profile] Mobile, Wearable
[Issue Type] Fix bugs
Change-Id: I279581f1c7b33483f04f3c6afd2c797ec0ed1aea
Diffstat (limited to 'src/mm_radio_priv_hal.c')
-rwxr-xr-x | src/mm_radio_priv_hal.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mm_radio_priv_hal.c b/src/mm_radio_priv_hal.c index 511c74b..1e7bb92 100755 --- a/src/mm_radio_priv_hal.c +++ b/src/mm_radio_priv_hal.c @@ -647,7 +647,7 @@ int _mmradio_start(mm_radio_t *radio) ret = sound_manager_start_virtual_stream(radio->vstream); if (ret) { MMRADIO_LOG_ERROR("failed to start sound manager virtual stream"); - goto error; + goto error1; } #endif @@ -657,10 +657,6 @@ int _mmradio_start(mm_radio_t *radio) return MM_ERROR_NONE; -#ifdef TIZEN_FEATURE_SOUND_VSTREAM -error: - sound_manager_stop_virtual_stream(radio->vstream); -#endif error1: radio_hal_close(radio->hal_inf); error2: |