drm/i915: Remove stale code
authorBen Widawsky <ben@bwidawsk.net>
Wed, 10 Apr 2013 00:25:50 +0000 (17:25 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 18 Apr 2013 07:43:20 +0000 (09:43 +0200)
Looks like a some remnant from a rebase.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c

index b77e98c0812c8674fc974b3a97c27cb9221fec10..50df194914a652e249b4b4b924af14ed56ec010b 100644 (file)
@@ -815,7 +815,6 @@ int i915_gem_gtt_init(struct drm_device *dev)
 {
        struct drm_i915_private *dev_priv = dev->dev_private;
        struct i915_gtt *gtt = &dev_priv->gtt;
-       unsigned long gtt_size;
        int ret;
 
        if (INTEL_INFO(dev)->gen <= 5) {
@@ -833,8 +832,6 @@ int i915_gem_gtt_init(struct drm_device *dev)
        if (ret)
                return ret;
 
-       gtt_size = (dev_priv->gtt.total >> PAGE_SHIFT) * sizeof(gen6_gtt_pte_t);
-
        /* GMADR is the PCI mmio aperture into the global GTT. */
        DRM_INFO("Memory usable by graphics device = %zdM\n",
                 dev_priv->gtt.total >> 20);