drm/i915: Don't declare unnecessary shadowing variable
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 3 Mar 2014 17:31:45 +0000 (17:31 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 5 Mar 2014 20:30:36 +0000 (21:30 +0100)
'i' is already defined in the function scope and used elsewhere. Let's
use it instead.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c

index 43f30746c8dcffd5df522df5fc4bf895e0a955bb..84d39a989e21084716fe057e4124047d3ec702d3 100644 (file)
@@ -602,7 +602,6 @@ static int i915_interrupt_info(struct seq_file *m, void *data)
        intel_runtime_pm_get(dev_priv);
 
        if (INTEL_INFO(dev)->gen >= 8) {
-               int i;
                seq_printf(m, "Master Interrupt Control:\t%08x\n",
                           I915_READ(GEN8_MASTER_IRQ));