From: Imre Deak Date: Wed, 30 Mar 2011 12:06:21 +0000 (+0300) Subject: gpu: pvr: remove dead code from the PVRSRVGetFBStatsKM code path X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca7ffad0d6553d9efe90a5aef73e772e17722ddb;p=sgx.git gpu: pvr: remove dead code from the PVRSRVGetFBStatsKM code path Reported-by: Coverity Signed-off-by: Imre Deak Reviewed-by: Pauli Nieminen --- diff --git a/pvr/buffer_manager.c b/pvr/buffer_manager.c index 6c4023e..ab41cf2 100644 --- a/pvr/buffer_manager.c +++ b/pvr/buffer_manager.c @@ -1078,14 +1078,6 @@ void *BM_HandleToOSMemHandle(void *hBuf) return pBuf->hOSMemHandle; } -IMG_BOOL BM_ContiguousStatistics(u32 uFlags, u32 *pTotalBytes, - u32 *pAvailableBytes) -{ - if (pAvailableBytes || pTotalBytes || uFlags) - ; - return IMG_FALSE; -} - static IMG_BOOL DevMemoryAlloc(struct BM_CONTEXT *pBMContext, struct BM_MAPPING *pMapping, u32 uFlags, u32 dev_vaddr_alignment, struct IMG_DEV_VIRTADDR *pDevVAddr) diff --git a/pvr/pvr_bridge_km.h b/pvr/pvr_bridge_km.h index 55392f2..2dfe577 100644 --- a/pvr/pvr_bridge_km.h +++ b/pvr/pvr_bridge_km.h @@ -205,8 +205,6 @@ enum PVRSRV_ERROR PVRSRVFreeSyncInfoKM( enum PVRSRV_ERROR PVRSRVGetMiscInfoKM(struct PVRSRV_MISC_INFO *psMiscInfo); -enum PVRSRV_ERROR PVRSRVGetFBStatsKM(u32 *pui32Total, u32 *pui32Available); - enum PVRSRV_ERROR PVRSRVAllocSharedSysMemoryKM( struct PVRSRV_PER_PROCESS_DATA *psPerProc, u32 ui32Flags, u32 ui32Size, struct PVRSRV_KERNEL_MEM_INFO **ppsKernelMemInfo); diff --git a/pvr/pvrsrv.c b/pvr/pvrsrv.c index 2bfb856..c0309b1 100644 --- a/pvr/pvrsrv.c +++ b/pvr/pvrsrv.c @@ -698,25 +698,6 @@ enum PVRSRV_ERROR PVRSRVGetMiscInfoKM(struct PVRSRV_MISC_INFO *psMiscInfo) return PVRSRV_OK; } -enum PVRSRV_ERROR PVRSRVGetFBStatsKM(u32 *pui32Total, u32 *pui32Available) -{ - u32 ui32Total = 0, i = 0; - u32 ui32Available = 0; - - *pui32Total = 0; - *pui32Available = 0; - - while (BM_ContiguousStatistics(i, &ui32Total, &ui32Available) == - IMG_TRUE) { - *pui32Total += ui32Total; - *pui32Available += ui32Available; - - i++; - } - - return PVRSRV_OK; -} - IMG_BOOL PVRSRVDeviceLISR(struct PVRSRV_DEVICE_NODE *psDeviceNode) { struct SYS_DATA *psSysData;