[Intel-gfx] [PATCH 3/4 v2] drm/i915: Add space between variable declarations and code

Damien Lespiau damien.lespiau at intel.com
Sat Oct 25 13:05:09 CEST 2014


OCD kicks in again...

v2: Chris out-OCDed me and asked for a const.

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 07440ad..052c6ae 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -9559,9 +9559,9 @@ static void ilk_do_mmio_flip(struct intel_crtc *intel_crtc)
 	struct intel_framebuffer *intel_fb =
 		to_intel_framebuffer(intel_crtc->base.primary->fb);
 	struct drm_i915_gem_object *obj = intel_fb->obj;
+	const u32 reg = DSPCNTR(intel_crtc->plane);
 	u32 dspcntr;
-	u32 reg;
-	reg = DSPCNTR(intel_crtc->plane);
+
 	dspcntr = I915_READ(reg);
 
 	if (obj->tiling_mode != I915_TILING_NONE)
-- 
1.8.3.1




More information about the Intel-gfx mailing list