From: Ville Syrjälä Date: Fri, 22 Dec 2017 19:22:25 +0000 (+0200) Subject: drm/i915: Nuke a pointless unreachable() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e13a3183dae4f511821c4ad1e317a2b132051d4c;p=openwrt%2Fstaging%2Fblogic.git drm/i915: Nuke a pointless unreachable() The unreachable() is very much unreachable and the compiler knows that, so there's no point in having it. Cc: Ben Widawsky Cc: Jason Ekstrand Cc: Daniel Stone Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20171222192231.17981-3-ville.syrjala@linux.intel.com Reviewed-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index cbec1d3efa22..36960b7eb736 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -12950,8 +12950,6 @@ static bool intel_primary_plane_format_mod_supported(struct drm_plane *plane, return i965_mod_supported(format, modifier); else return i8xx_mod_supported(format, modifier); - - unreachable(); } static bool intel_cursor_plane_format_mod_supported(struct drm_plane *plane,