osal: Changed error check routine for ion_client_create function.
authorYunji Kim <yunji.kim@samsung.com>
Sat, 27 Oct 2012 02:51:27 +0000 (11:51 +0900)
committerHuisung Kang <hs1218.kang@samsung.com>
Mon, 29 Oct 2012 04:45:13 +0000 (13:45 +0900)
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>
osal/Exynos_OSAL_SharedMemory.c

index 775d48b9dfc99ba153f4c19298793f373710aee2..38e23e20d62b17ee88743c412f5122325927946e 100644 (file)
@@ -72,9 +72,9 @@ OMX_HANDLETYPE Exynos_OSAL_SharedMemory_Open()
     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;