Re: [PATCH] drm/i915: Remove unneeded double drm_rect_visible call in check_overlay_dst
From: Nikita Kiryushin
Date: Fri Mar 01 2024 - 14:11:37 EST
On 2/29/24 15:30, Ville Syrjälä wrote:
I prefer the current way where we have no side effects in
the if statement.
This seem like a valid concern from readability and maintainability
standpoint. My patch was aimed mostly at performance and maintainability
using tools: some more pedantic analyzers are sensitive to non-checked
return values (as of now, drm_rect_intersect is ignored).
Would it be a better idea to make an update to the patch with second
drm_rect_visible call changed to an appropriately named state flag set
with drm_rect_intersect result?
BTW, the original patch somehow got mangled while it made its way to the
patchwork: source list line in patch got broken, which permits the patch
from being applied (the original version did not have that line break).
Any ideas how to prevent this happening with the second version of patch
(in case the idea is viable)?