audio: Fix warning in hal/audio_extn/dolby.c
Fix error where the audio_extn_dolby_set_license function is supposed to
return void but instead returns an int.
BUG=none
TEST=dragonboard builds.
Change-Id: I071c93f838515bb9fade2b3d26f67a340fb8bde9
diff --git a/audio/hal/audio_extn/dolby.c b/audio/hal/audio_extn/dolby.c
index e1b64be..14a653e 100644
--- a/audio/hal/audio_extn/dolby.c
+++ b/audio/hal/audio_extn/dolby.c
@@ -639,10 +639,10 @@
void audio_extn_dolby_set_license(struct audio_device *adev)
{
- int i_key=0;
+ int i_key = 0;
char c_key[128] = {0};
char c_dmid[128] = {0};
- int i_dmid, ret = -EINVAL;
+ int i_dmid = 0;
struct dolby_param_license dolby_license;
#ifdef DOLBY_ACDB_LICENSE
@@ -661,9 +661,9 @@
ds2extnmod.dap_hal_set_hw_info(DMID, (void*)(&dolby_license.dmid));
} else {
ALOGV("%s: dap_hal_set_hw_info is NULL", __func__);
- return ret;
+ return;
}
- return 0;
+ return;
}