diff options
-rw-r--r-- | src/i830_memory.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c index 14e7f89c..892c26e9 100644 --- a/src/i830_memory.c +++ b/src/i830_memory.c @@ -1069,7 +1069,7 @@ i830_allocate_framebuffer(ScrnInfoPtr pScrn) { I830Ptr pI830 = I830PTR(pScrn); unsigned int pitch = pScrn->displayWidth * pI830->cpp; - unsigned long minspace, avail; + unsigned long minspace; int align; long size, fb_height; int flags; @@ -1088,7 +1088,6 @@ i830_allocate_framebuffer(ScrnInfoPtr pScrn) * enough for the virtual screen size. */ minspace = pitch * pScrn->virtualY; - avail = pScrn->videoRam * 1024; size = ROUND_TO_PAGE(pitch * fb_height); |