diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1017-drm-amd-display-Minor-code-cleanup.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/1017-drm-amd-display-Minor-code-cleanup.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1017-drm-amd-display-Minor-code-cleanup.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1017-drm-amd-display-Minor-code-cleanup.patch new file mode 100644 index 00000000..dbf40467 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1017-drm-amd-display-Minor-code-cleanup.patch @@ -0,0 +1,37 @@ +From ba94f4b6ad5cbb08397f0242d7260b756e3cf496 Mon Sep 17 00:00:00 2001 +From: SivapiriyanKumarasamy <sivapiriyan.kumarasamy@amd.com> +Date: Fri, 23 Nov 2018 20:33:35 -0500 +Subject: [PATCH 1017/2940] 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> +--- + drivers/gpu/drm/amd/display/modules/color/color_gamma.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +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; + +-- +2.17.1 + |