Merge "audio-hal: gef: Remove access check for gef library"
This commit is contained in:
commit
a1f1cd8615
|
@ -109,15 +109,12 @@ static acdb_device_type make_acdb_device_type_from_gef_cal_type
|
|||
|
||||
void audio_extn_gef_init(struct audio_device *adev)
|
||||
{
|
||||
int ret = 0;
|
||||
const char* error = NULL;
|
||||
|
||||
ALOGV("%s: Enter with error", __func__);
|
||||
|
||||
memset(&gef_hal_handle, 0, sizeof(gef_data));
|
||||
|
||||
ret = access(GEF_LIBRARY, R_OK);
|
||||
if (ret == 0) {
|
||||
//: check error for dlopen
|
||||
gef_hal_handle.handle = dlopen(GEF_LIBRARY, RTLD_LAZY);
|
||||
if (gef_hal_handle.handle == NULL) {
|
||||
|
@ -166,12 +163,9 @@ void audio_extn_gef_init(struct audio_device *adev)
|
|||
|
||||
gef_hal_handle.gef_ptr = gef_hal_handle.init((void*)adev);
|
||||
}
|
||||
} else {
|
||||
ALOGE("%s: %s access failed", __func__, GEF_LIBRARY);
|
||||
}
|
||||
|
||||
ERROR_RETURN:
|
||||
ALOGV("%s: Exit with error %d", __func__, ret);
|
||||
ALOGV("%s: Exit with error ", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue