1. 16490 : Incorrect expression
2. 17724 : Null pointer dereferences
Change-Id: I39b9e9433f19aba7900bb11d883b746428280459
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
#endif
default:
ALOGE("%s:: unsupported csc_hw_type, csc use sw", __func__);
- csc_handle->csc_hw_handle == NULL;
+ csc_handle->csc_hw_handle = NULL;
break;
}
}
CSC_ERRORCODE ret = CSC_ErrorNone;
CSC_HANDLE *csc_handle;
+ if (handle == NULL)
+ return ret;
+
csc_handle = (CSC_HANDLE *)handle;
if (csc_handle->csc_method == CSC_METHOD_HW) {
switch (csc_handle->csc_hw_type) {
}
}
- if (csc_handle != NULL) {
- free(csc_handle);
- ret = CSC_ErrorNone;
- }
+ free(csc_handle);
+ ret = CSC_ErrorNone;
return ret;
}