Because the return value of ion_client_create function chagned from
ion_client pointer to ion_client type.
ion_client_create returns negative value if creating new ion_client is
failed.
Change-Id: I736edff5373d1c3adc340cbd0e804502076b89a6
Signed-off-by: Yunji Kim <yunji.kim@samsung.com>
Signed-off-by: Huisung Kang <hs1218.kang@samsung.com>
if (pHandle == NULL)
goto EXIT;
- IONClient = (OMX_HANDLETYPE)ion_client_create();
- if (IONClient <= 0) {
- Exynos_OSAL_Log(EXYNOS_LOG_ERROR, "ion_client_create Error: %d", IONClient);
+ IONClient = ion_client_create();
+ if (IONClient < 0) {
+ Exynos_OSAL_Log(EXYNOS_LOG_ERROR, "ion_client_create is failed: %d", IONClient);
Exynos_OSAL_Free((void *)pHandle);
pHandle = NULL;
goto EXIT;