aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/ice4100/sgx535/bridged/bridged_pvr_bridge.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/ice4100/sgx535/bridged/bridged_pvr_bridge.c')
-rwxr-xr-xdrivers/staging/ice4100/sgx535/bridged/bridged_pvr_bridge.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/staging/ice4100/sgx535/bridged/bridged_pvr_bridge.c b/drivers/staging/ice4100/sgx535/bridged/bridged_pvr_bridge.c
index 9a74bcfe83d..8323ac289db 100755
--- a/drivers/staging/ice4100/sgx535/bridged/bridged_pvr_bridge.c
+++ b/drivers/staging/ice4100/sgx535/bridged/bridged_pvr_bridge.c
@@ -560,7 +560,6 @@ PVRSRVFreeDeviceMemBW(u32 ui32BridgeID,
{
void *hDevCookieInt;
void *pvKernelMemInfo;
- PVRSRV_KERNEL_MEM_INFO *psKernelMemInfo;
PVRSRV_BRIDGE_ASSERT_CMD(ui32BridgeID, PVRSRV_BRIDGE_FREE_DEVICEMEM);
@@ -582,19 +581,9 @@ PVRSRVFreeDeviceMemBW(u32 ui32BridgeID,
return 0;
}
- psKernelMemInfo = (PVRSRV_KERNEL_MEM_INFO *) pvKernelMemInfo;
- if (psKernelMemInfo->ui32RefCount == 1) {
- psRetOUT->eError =
+ psRetOUT->eError =
PVRSRVFreeDeviceMemKM(hDevCookieInt, pvKernelMemInfo);
- } else {
- PVR_DPF((PVR_DBG_WARNING,
- "PVRSRVFreeDeviceMemBW: mappings are open "
- "in other processes, deferring free!"));
-
- psKernelMemInfo->bPendingFree = 1;
- psRetOUT->eError = PVRSRV_OK;
- }
if (psRetOUT->eError != PVRSRV_OK) {
return 0;