summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Nathan <ralphnathan@google.com>2015-12-11 10:29:11 -0800
committerRalph Nathan <ralphnathan@google.com>2015-12-11 10:29:11 -0800
commitc95745ec3867d527589915b38b417ec6b00f55ba (patch)
tree45092391af2ca72a8b8819638064ca91fb907578
parentbe3c0bb8a52668c29c18b512372f3f205bfba76b (diff)
downloadqcom-c95745ec3867d527589915b38b417ec6b00f55ba.tar.gz
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
-rw-r--r--audio/hal/audio_extn/dolby.c8
1 files changed, 4 insertions, 4 deletions
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 @@ int audio_extn_dolby_set_dap_bypass(struct audio_device *adev, int state) {
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 @@ void audio_extn_dolby_set_license(struct audio_device *adev)
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;
}