From: Janusz Sobczak Date: Mon, 9 Aug 2010 11:21:27 +0000 (+0200) Subject: gpu: pvr: Remove needless NULL check in BM_CreateHeap. X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=303be910f9e8d9909ffe6eabf44cf0ceb5b3e34e;p=sgx.git gpu: pvr: Remove needless NULL check in BM_CreateHeap. Signed-off-by: Janusz Sobczak Signed-off-by: Imre Deak --- diff --git a/pvr/buffer_manager.c b/pvr/buffer_manager.c index 8381958..8f1190c 100644 --- a/pvr/buffer_manager.c +++ b/pvr/buffer_manager.c @@ -696,9 +696,6 @@ void *BM_CreateHeap(void *hBMContext, PVR_DPF(PVR_DBG_MESSAGE, "BM_CreateHeap"); - if (!pBMContext) - return NULL; - if (pBMContext->ui32RefCount > 0) { psBMHeap = pBMContext->psBMHeap;