[Intel-gfx] [PATCH 2/3] drm/i915: Remove an unreachable 'return'

Damien Lespiau damien.lespiau at intel.com
Sun Aug 10 00:00:57 CEST 2014


Running smatch adds quite a few checks to what sparse is doing. This is
one of them.

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

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 4b89447..a6af1b2 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -8646,7 +8646,6 @@ void intel_release_load_detect_pipe(struct drm_connector *connector,
 		}
 
 		goto unlock;
-		return;
 	}
 
 	/* Switch crtc and encoder back off if necessary */
-- 
1.8.3.1




More information about the Intel-gfx mailing list