summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-08-06 15:43:51 -0700
committerIan Romanick <idr@us.ibm.com>2007-08-06 15:43:51 -0700
commita6fb93a150f90ada9af6760b52d34716497f744f (patch)
tree7f280d9fd3cfb51953cd9ad64cacda7a7c4aee84 /linux-core
parent78e9c1a93d00097895bc77d9ac90da1945021804 (diff)
Finish removing allocation "owner" infrastructure.
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/xgi_pcie.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/linux-core/xgi_pcie.c b/linux-core/xgi_pcie.c
index f66ffee9..be6915e8 100644
--- a/linux-core/xgi_pcie.c
+++ b/linux-core/xgi_pcie.c
@@ -28,10 +28,6 @@
#include "xgi_regs.h"
#include "xgi_misc.h"
-static struct xgi_mem_block *xgi_pcie_vertex_block = NULL;
-static struct xgi_mem_block *xgi_pcie_cmdlist_block = NULL;
-static struct xgi_mem_block *xgi_pcie_scratchpad_block = NULL;
-
static int xgi_pcie_free_locked(struct xgi_info * info,
unsigned long offset, struct drm_file * filp);
@@ -220,14 +216,7 @@ void xgi_pcie_free_all(struct xgi_info * info, struct drm_file * filp)
int xgi_pcie_free_locked(struct xgi_info * info, unsigned long offset,
struct drm_file * filp)
{
- const bool isvertex = (xgi_pcie_vertex_block
- && (xgi_pcie_vertex_block->offset == offset));
- int err = xgi_mem_free(&info->pcie_heap, offset, filp);
-
- if (!err && isvertex)
- xgi_pcie_vertex_block = NULL;
-
- return err;
+ return xgi_mem_free(&info->pcie_heap, offset, filp);
}