diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2009-04-30 18:42:18 +0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-05-12 14:25:10 -0700 |
commit | 660bd745c21c56e330d844fe4c8eaae862a77483 (patch) | |
tree | a4fb5712b3c37b124c81bfe07ad9dc1659bfe30c /src/i830_memory.c | |
parent | b1f5cc3349f6811ff4d8dc64cc291788d6726372 (diff) |
Remove the offset parameter from i830_allocator_init()
offset is redundant. i830_allocator_init() is only called
in one place with offset=0.
Acked-by: Magnus Kessler <Magnus.Kessler@gmx.net>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/i830_memory.c')
-rw-r--r-- | src/i830_memory.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c index d5827f81..18ddff4f 100644 --- a/src/i830_memory.c +++ b/src/i830_memory.c @@ -364,7 +364,7 @@ i830_reset_allocations(ScrnInfoPtr pScrn) * addresses to reference. */ Bool -i830_allocator_init(ScrnInfoPtr pScrn, unsigned long offset, unsigned long size) +i830_allocator_init(ScrnInfoPtr pScrn, unsigned long size) { I830Ptr pI830 = I830PTR(pScrn); i830_memory *start, *end; @@ -395,12 +395,12 @@ i830_allocator_init(ScrnInfoPtr pScrn, unsigned long offset, unsigned long size) } start->key = -1; - start->offset = offset; + start->offset = 0; start->end = start->offset; start->size = 0; start->next = end; end->key = -1; - end->offset = offset + size; + end->offset = size; end->end = end->offset; end->size = 0; end->prev = start; |