All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915: Move default: to the end of the switch
@ 2013-06-05 11:01 Damien Lespiau
  2013-06-05 11:01 ` [PATCH 2/2] drm/i915: Fix 'port' typo in comment Damien Lespiau
  2013-06-05 11:28 ` [PATCH 1/2] drm/i915: Move default: to the end of the switch Jani Nikula
  0 siblings, 2 replies; 4+ messages in thread
From: Damien Lespiau @ 2013-06-05 11:01 UTC (permalink / raw)
  To: intel-gfx

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

Signed-off-by: Damien Lespiau <damien.lespiau@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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-05 12:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-05 11:01 [PATCH 1/2] drm/i915: Move default: to the end of the switch Damien Lespiau
2013-06-05 11:01 ` [PATCH 2/2] drm/i915: Fix 'port' typo in comment Damien Lespiau
2013-06-05 11:28 ` [PATCH 1/2] drm/i915: Move default: to the end of the switch Jani Nikula
2013-06-05 12:36   ` Damien Lespiau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.