Remove meaningless error converting code 86/233886/1
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 20 May 2020 05:24:32 +0000 (14:24 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 20 May 2020 05:25:17 +0000 (14:25 +0900)
[Version] 0.6.6
[Issue Type] Code cleanup

Change-Id: I38b25758d2bbbdd1c6d1a54114641145f425fb20
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-sound-manager.spec
src/sound_manager_internal.c

index a7228cf302d4dbc7a9519842f17daa2854d2624e..85023681873a6b180a636f1908f0ba8055f19a26 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.6.5
+Version:    0.6.6
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 2bf678c682203edeb910ba7d0e9f8f74745039d5..ac6f963995ccbc3f6f5c9d77210b48f517dcf9ac 100644 (file)
@@ -261,7 +261,6 @@ int sound_manager_is_available_stream_information(sound_stream_info_h stream_inf
 
 int sound_manager_get_type_from_stream_information(sound_stream_info_h stream_info, char **type)
 {
-       int ret = MM_ERROR_NONE;
        sound_stream_info_s* stream_h = (sound_stream_info_s*)stream_info;
 
        SM_INSTANCE_CHECK(stream_h);
@@ -270,19 +269,19 @@ int sound_manager_get_type_from_stream_information(sound_stream_info_h stream_in
        *type = stream_h->stream_type;
        LOGI("stream_type[%s]", *type);
 
-       return _convert_sound_manager_error_code(__func__, ret);
+       return SOUND_MANAGER_ERROR_NONE;
 }
 int sound_manager_get_index_from_stream_information(sound_stream_info_h stream_info, int *index)
 {
-       int ret = MM_ERROR_NONE;
        sound_stream_info_s* stream_h = (sound_stream_info_s*)stream_info;
+
        SM_INSTANCE_CHECK(stream_h);
        SM_NULL_ARG_CHECK(index);
 
        *index = stream_h->pa_info.index;
        LOGI("stream_index[%u]", stream_h->pa_info.index);
 
-       return _convert_sound_manager_error_code(__func__, ret);
+       return SOUND_MANAGER_ERROR_NONE;
 }
 
 int sound_manager_add_device_id_for_stream_routing(sound_stream_info_h stream_info, int device_id)