Signed-off-by: Janusz Sobczak <janusz.sobczak@imgtec.com>
Signed-off-by: Imre Deak <imre.deak@nokia.com>
return PVRSRV_ERROR_GENERIC;
}
- OSAllocMem(PVRSRV_OS_PAGEABLE_HEAP,
- sizeof(struct MMU_CONTEXT), (void **) &psMMUContext, NULL);
- if (psMMUContext == NULL) {
+ if (OSAllocMem(PVRSRV_OS_PAGEABLE_HEAP,
+ sizeof(struct MMU_CONTEXT), (void **) &psMMUContext, NULL)
+ != PVRSRV_OK) {
PVR_DPF(PVR_DBG_ERROR,
"MMU_Initialise: ERROR call to OSAllocMem failed");
return PVRSRV_ERROR_GENERIC;