]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915: Remove pointless visible check in unlink_nv12_plane()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 12 Feb 2025 16:43:26 +0000 (18:43 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Sat, 15 Feb 2025 07:28:59 +0000 (09:28 +0200)
commit6a01df2f1b2a3b29721143729a3feff816bc0083
tree1db1a6ac8a2587da06f063443fe63a2187248d9f
parenta33a6b2f0824387b97dfdf3549239e5d70a437df
drm/i915: Remove pointless visible check in unlink_nv12_plane()

visible can't be true when is_y_plane is true. Replace the
bogus check with an WARN_ON(). Flatten the function while
at it.

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250212164330.16891-7-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_display.c