]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Minor code cleanup
authorSivapiriyanKumarasamy <sivapiriyan.kumarasamy@amd.com>
Sat, 24 Nov 2018 01:33:35 +0000 (20:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:39 +0000 (15:04 -0500)
commit1d6364700197ded6c9d6b91bb039da22dfa45c14
treea2f441c1db6e41e816380bca99f44187bb1ccdb4
parent52abf91eb1f5f42f961776b440a246ddc3c20796
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