Merge "audio: free and assign NULL to global static device pointer"

This commit is contained in:
qctecmdr 2019-06-28 22:41:26 -07:00 committed by Gerrit - the friendly Code Review server
commit 12482bacb8
1 changed files with 2 additions and 2 deletions

View File

@ -9210,9 +9210,9 @@ static int adev_dump(const audio_hw_device_t *device __unused,
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);