From ab2055ebb20aa6de121fa377e488ce91913035ae Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Fri, 9 Nov 2007 13:55:46 -0800 Subject: [PATCH] Add 'ret' variable to i830_allocator_init Needed in the XF86DRI_MM case. --- src/i830_memory.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/i830_memory.c b/src/i830_memory.c index 7e9fb4f0..1ad44384 100644 --- a/src/i830_memory.c +++ b/src/i830_memory.c @@ -476,6 +476,8 @@ i830_allocator_init(ScrnInfoPtr pScrn, unsigned long offset, unsigned long size) ALIGN_BOTH_ENDS | NEED_NON_STOLEN); if (pI830->memory_manager != NULL) { + int ret; + /* Tell the kernel to manage it */ ret = drmMMInit(pI830->drmSubFD, pI830->memory_manager->offset / GTT_PAGE_SIZE,