drm/i915: Nuke a pointless unreachable()
authorVille Syrjälä <[email protected]>
Fri, 22 Dec 2017 19:22:25 +0000 (21:22 +0200)
committerVille Syrjälä <[email protected]>
Fri, 19 Jan 2018 13:33:58 +0000 (15:33 +0200)
The unreachable() is very much unreachable and the compiler knows
that, so there's no point in having it.

Cc: Ben Widawsky <[email protected]>
Cc: Jason Ekstrand <[email protected]>
Cc: Daniel Stone <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/i915/intel_display.c

index cbec1d3efa224eb62f846528c47959d1664492d8..36960b7eb73608232c5074613a5856feac09e11f 100644 (file)
@@ -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,