diff options
author | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2006-10-17 11:28:48 +0200 |
---|---|---|
committer | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2006-10-17 11:28:48 +0200 |
commit | db5c671e86c3db8c99ce5a4954632248e6f849aa (patch) | |
tree | 02f15f8b557db2f20bf5773fe4403d8e62b24d46 /linux-core/drm_sman.c | |
parent | 5881ce1b91034fbdf81dda37a23215cfc1310cdf (diff) |
Remove the memory manager parameter from the put_block function, as this
makes the client code a lot cleaner. Prepare buffer manager for lock and
unlock calls.
Diffstat (limited to 'linux-core/drm_sman.c')
-rw-r--r-- | linux-core/drm_sman.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux-core/drm_sman.c b/linux-core/drm_sman.c index 425c8233..19a13f3a 100644 --- a/linux-core/drm_sman.c +++ b/linux-core/drm_sman.c @@ -101,10 +101,9 @@ static void *drm_sman_mm_allocate(void *private, unsigned long size, static void drm_sman_mm_free(void *private, void *ref) { - drm_mm_t *mm = (drm_mm_t *) private; drm_mm_node_t *node = (drm_mm_node_t *) ref; - drm_mm_put_block(mm, node); + drm_mm_put_block(node); } static void drm_sman_mm_destroy(void *private) |