From: Janusz Sobczak Date: Mon, 9 Aug 2010 11:20:52 +0000 (+0200) Subject: gpu: pvr: Remove needless NULL check in BM_DestroyHeap. X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9038b284279e6dad4562aa58a0a4d6fedcd1b5f;p=sgx.git gpu: pvr: Remove needless NULL check in BM_DestroyHeap. Signed-off-by: Janusz Sobczak Signed-off-by: Imre Deak --- diff --git a/pvr/buffer_manager.c b/pvr/buffer_manager.c index dfddade..8932d57 100644 --- a/pvr/buffer_manager.c +++ b/pvr/buffer_manager.c @@ -787,7 +787,6 @@ void BM_DestroyHeap(void *hDevMemHeap) PVR_DPF(PVR_DBG_MESSAGE, "BM_DestroyHeap"); - if (psBMHeap) { struct BM_HEAP **ppsBMHeap; if (psBMHeap->ui32Attribs & @@ -814,9 +813,6 @@ void BM_DestroyHeap(void *hDevMemHeap) } ppsBMHeap = &((*ppsBMHeap)->psNext); } - } else { - PVR_DPF(PVR_DBG_ERROR, "BM_DestroyHeap: invalid heap handle"); - } } IMG_BOOL BM_Reinitialise(struct PVRSRV_DEVICE_NODE *psDeviceNode)