summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-05-12 18:53:27 -0700
committerEric Anholt <eric@anholt.net>2009-05-14 14:04:38 -0700
commitb9462516d18bc57be5f33f57adb6c3e8beede5ff (patch)
tree96979ca3ee746de8162898f522e9bfd2debff04c
parent1c68bc376a9cb3c0a010c8e28f69a776755c8f64 (diff)
Remove dead "avail" variable from XAA stuff.
-rw-r--r--src/i830_memory.c3
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);