]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/armada: Drop always true condition in atomic_check
authorMaxime Ripard <mripard@kernel.org>
Tue, 30 Sep 2025 10:59:28 +0000 (12:59 +0200)
committerMaxime Ripard <mripard@kernel.org>
Mon, 6 Oct 2025 11:59:10 +0000 (13:59 +0200)
commit3d775873747c99f0cdf685432237178a5d0557c0
treeac3c88aa55c2a5dd15a0588b590e52c173a195b3
parent41230da56dac41462e0dff6e6364923617650fcd
drm/armada: Drop always true condition in atomic_check

The drm_atomic_state pointer passed to atomic_check is always valid, so
checking if it's NULL or not is pointless. Remove the check.

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://lore.kernel.org/r/20250930-drm-no-more-existing-state-v5-13-eeb9e1287907@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/armada/armada_plane.c