[Intel-gfx] [PATCH 1/2] drm/i915: Move default: to the end of the switch

Damien Lespiau damien.lespiau at intel.com
Wed Jun 5 13:01:40 CEST 2013


As it's usual to do, don't leave it in the middle of valid cases.

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

diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 63996aa..a8ef086 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -1484,14 +1484,14 @@ static void i915_get_extra_instdone(struct drm_device *dev,
 		instdone[0] = I915_READ(INSTDONE_I965);
 		instdone[1] = I915_READ(INSTDONE1);
 		break;
-	default:
-		WARN_ONCE(1, "Unsupported platform\n");
 	case 7:
 		instdone[0] = I915_READ(GEN7_INSTDONE_1);
 		instdone[1] = I915_READ(GEN7_SC_INSTDONE);
 		instdone[2] = I915_READ(GEN7_SAMPLER_INSTDONE);
 		instdone[3] = I915_READ(GEN7_ROW_INSTDONE);
 		break;
+	default:
+		WARN_ONCE(1, "Unsupported platform\n");
 	}
 }
 
-- 
1.8.1.4




More information about the Intel-gfx mailing list