Commit cbac53f7 authored by Eryk Brol's avatar Eryk Brol Committed by Alex Deucher

drm/amd/display: Remove unnecessary NULL check

[Why]
new_crtc_state is already dereferenced earlier in the function

[How]
Remove the check
Signed-off-by: default avatarEryk Brol <eryk.brol@amd.com>
Acked-by: default avatarBindu Ramamurthy <bindu.r@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e8263235
...@@ -9367,7 +9367,7 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev, ...@@ -9367,7 +9367,7 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
if (ret) if (ret)
goto fail; goto fail;
if (dm_old_crtc_state->dsc_force_changed && new_crtc_state) if (dm_old_crtc_state->dsc_force_changed)
new_crtc_state->mode_changed = true; new_crtc_state->mode_changed = true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment