gpu: pvr: Fixed formatting in buffer_manager.c
authorJanusz Sobczak <janusz.sobczak@imgtec.com>
Mon, 9 Aug 2010 11:21:08 +0000 (13:21 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:09:41 +0000 (21:09 +0300)
Fixed indentation and mixed code and declarations.
No functional change.

Signed-off-by: Janusz Sobczak <janusz.sobczak@imgtec.com>
Signed-off-by: Imre Deak <imre.deak@nokia.com>
pvr/buffer_manager.c

index 8932d57..cc018cf 100644 (file)
@@ -784,35 +784,34 @@ void BM_DestroyHeap(void *hDevMemHeap)
        struct BM_HEAP *psBMHeap = (struct BM_HEAP *)hDevMemHeap;
        struct PVRSRV_DEVICE_NODE *psDeviceNode =
                                        psBMHeap->pBMContext->psDeviceNode;
+       struct BM_HEAP **ppsBMHeap;
 
        PVR_DPF(PVR_DBG_MESSAGE, "BM_DestroyHeap");
 
-               struct BM_HEAP **ppsBMHeap;
-
-               if (psBMHeap->ui32Attribs &
-                   (PVRSRV_BACKINGSTORE_SYSMEM_NONCONTIG |
-                     PVRSRV_BACKINGSTORE_LOCALMEM_CONTIG)) {
-                       if (psBMHeap->pImportArena)
-                               RA_Delete(psBMHeap->pImportArena);
-               } else {
-                       PVR_DPF(PVR_DBG_ERROR,
+       if (psBMHeap->ui32Attribs &
+                       (PVRSRV_BACKINGSTORE_SYSMEM_NONCONTIG |
+                        PVRSRV_BACKINGSTORE_LOCALMEM_CONTIG)) {
+               if (psBMHeap->pImportArena)
+                       RA_Delete(psBMHeap->pImportArena);
+       } else {
+               PVR_DPF(PVR_DBG_ERROR,
                        "BM_DestroyHeap: backing store type unsupported");
-                       return;
-               }
+               return;
+       }
 
-               psDeviceNode->pfnMMUDelete(psBMHeap->pMMUHeap);
+       psDeviceNode->pfnMMUDelete(psBMHeap->pMMUHeap);
 
-               ppsBMHeap = &psBMHeap->pBMContext->psBMHeap;
-               while (*ppsBMHeap) {
-                       if (*ppsBMHeap == psBMHeap) {
-                               *ppsBMHeap = psBMHeap->psNext;
-                               OSFreeMem(PVRSRV_OS_PAGEABLE_HEAP,
-                                         sizeof(struct BM_HEAP), psBMHeap,
-                                         NULL);
-                               break;
-                       }
-                       ppsBMHeap = &((*ppsBMHeap)->psNext);
+       ppsBMHeap = &psBMHeap->pBMContext->psBMHeap;
+       while (*ppsBMHeap) {
+               if (*ppsBMHeap == psBMHeap) {
+                       *ppsBMHeap = psBMHeap->psNext;
+                       OSFreeMem(PVRSRV_OS_PAGEABLE_HEAP,
+                                       sizeof(struct BM_HEAP), psBMHeap,
+                                       NULL);
+                       break;
                }
+               ppsBMHeap = &((*ppsBMHeap)->psNext);
+       }
 }
 
 IMG_BOOL BM_Reinitialise(struct PVRSRV_DEVICE_NODE *psDeviceNode)