gma500: psb_gtt_init(): drop unused variable
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 3 May 2012 14:07:27 +0000 (15:07 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 7 May 2012 09:58:48 +0000 (10:58 +0100)
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/gtt.c

index 54e5c9e1e6fab7fa36bc99c08e09eb3388df305f..7d6f73769129d77827f072c58d06d168bf7a84ad 100644 (file)
@@ -413,7 +413,6 @@ int psb_gtt_init(struct drm_device *dev, int resume)
        unsigned long stolen_size, vram_stolen_size;
        unsigned i, num_pages;
        unsigned pfn_base;
-       uint32_t vram_pages;
        uint32_t dvmt_mode = 0;
        struct psb_gtt *pg;
 
@@ -529,7 +528,7 @@ int psb_gtt_init(struct drm_device *dev, int resume)
         */
 
        pfn_base = dev_priv->stolen_base >> PAGE_SHIFT;
-       vram_pages = num_pages = vram_stolen_size >> PAGE_SHIFT;
+       num_pages = vram_stolen_size >> PAGE_SHIFT;
        printk(KERN_INFO"Set up %d stolen pages starting at 0x%08x, GTT offset %dK\n",
                num_pages, pfn_base << PAGE_SHIFT, 0);
        for (i = 0; i < num_pages; ++i) {