summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorEryk Brol <eryk.brol@amd.com>2020-12-08 12:52:36 -0500
committerAlex Deucher <alexander.deucher@amd.com>2020-12-23 15:02:12 -0500
commitcbac53f7fc90754b898e79ab2d5c11052ce1b640 (patch)
tree76f30e99fc67ab0d02c5cd29f3700fa654a1bbc0 /drivers
parente82632356d531dbc575377d594e85e65aa1293f9 (diff)
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: Eryk Brol <eryk.brol@amd.com> Acked-by: Bindu Ramamurthy <bindu.r@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 2c4dbdeec46a..8fac6116591b 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -9367,7 +9367,7 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
if (ret)
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;
}