summaryrefslogtreecommitdiff
path: root/hal
diff options
context:
space:
mode:
authorCarter Hsu <carterhsu@google.com>2019-11-15 13:19:55 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-11-15 13:19:55 -0800
commitbe2fe7fb40306eeef211115c42a955aacc2ec5a4 (patch)
treef90d96ca6cd22796eb191e886167942b4b311cae /hal
parentffcba6d6aca14272ea0bb34a1356c4c104ccf294 (diff)
parent73d6b59977595c1d0a222a1656f298e7991e43b9 (diff)
downloadaudio-be2fe7fb40306eeef211115c42a955aacc2ec5a4.tar.gz
audio: free and assign NULL to global static device pointer
am: 73d6b59977 Change-Id: I44632c224c6ee9edca73fda24593362379220fff
Diffstat (limited to 'hal')
-rw-r--r--hal/audio_hw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 58d8f85..1c99066 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -6282,9 +6282,9 @@ static int adev_verify_devices(struct audio_device *adev)
static int adev_close(hw_device_t *device)
{
size_t i;
- struct audio_device *adev = (struct audio_device *)device;
+ struct audio_device *adev_temp = (struct audio_device *)device;
- if (!adev)
+ if (!adev_temp)
return 0;
pthread_mutex_lock(&adev_init_lock);