diff options
author | SivapiriyanKumarasamy | 2018-11-24 02:33:35 +0100 |
---|---|---|
committer | Alex Deucher | 2019-01-14 21:04:39 +0100 |
commit | 43995f8fb64c54b740262f72ab51d41268c0f7ff (patch) | |
tree | a2f441c1db6e41e816380bca99f44187bb1ccdb4 /drivers/gpu/drm/amd/display/modules | |
parent | drm/amd/display: Remove stream_status->link (diff) | |
download | kernel-qcow2-linux-43995f8fb64c54b740262f72ab51d41268c0f7ff.tar.gz kernel-qcow2-linux-43995f8fb64c54b740262f72ab51d41268c0f7ff.tar.xz kernel-qcow2-linux-43995f8fb64c54b740262f72ab51d41268c0f7ff.zip |
drm/amd/display: Minor code cleanup
[WHY]
There is an extra null check for fs_params in the
build_freesync_hdr function detected by Smatch.
[HOW]
1) Remove the extra null check since it is checked in the
caller.
Signed-off-by: SivapiriyanKumarasamy <sivapiriyan.kumarasamy@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules')
-rw-r--r-- | drivers/gpu/drm/amd/display/modules/color/color_gamma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/color/color_gamma.c b/drivers/gpu/drm/amd/display/modules/color/color_gamma.c index 479b77c2e89e..beb7bda1478a 100644 --- a/drivers/gpu/drm/amd/display/modules/color/color_gamma.c +++ b/drivers/gpu/drm/amd/display/modules/color/color_gamma.c @@ -823,7 +823,7 @@ static bool build_freesync_hdr(struct pwl_float_data_ex *rgb_regamma, bool is_clipped = false; struct fixed31_32 sdr_white_level; - if (fs_params == NULL || fs_params->max_content == 0 || + if (fs_params->max_content == 0 || fs_params->max_display == 0) return false; |