linux/drivers/gpu/drm/amd/display/dc/hwss
Srinivasan Shanmugam c6f79832b8 drm/amd/display: Remove redundant NULL check in dcn10_set_input_transfer_func
This commit removes an unnecessary NULL check in the
`dcn10_set_input_transfer_func` function in the `dcn10_hwseq.c` file.
The variable `tf` is assigned the address of
`plane_state->in_transfer_func` unconditionally, so it can never be
`NULL`. Therefore, the check `if (tf == NULL)` is unnecessary and has
been removed.

Fixes the below smatch warning:
drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn10/dcn10_hwseq.c:1839 dcn10_set_input_transfer_func() warn: address of 'plane_state->in_transfer_func' is non-NULL

Fixes: 285a7054bf ("drm/amd/display: Remove plane and stream pointers from dc scratch")
Cc: Wenjing Liu <wenjing.liu@amd.com>
Cc: Tom Chung <chiahsuan.chung@amd.com>
Cc: Alvin Lee <alvin.lee2@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Roman Li <roman.li@amd.com>
Cc: Hersen Wu <hersenxs.wu@amd.com>
Cc: Alex Hung <alex.hung@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Suggested-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-05-02 15:43:25 -04:00
..
dce drm/amd/display: Add some DCN401 reg name to macro definitions 2024-04-26 17:23:31 -04:00
dce80
dce100
dce110 drm/amd/display: Remove redundant NULL check in dce110_set_input_transfer_func 2024-05-02 15:41:26 -04:00
dce112
dce120
dcn10 drm/amd/display: Remove redundant NULL check in dcn10_set_input_transfer_func 2024-05-02 15:43:25 -04:00
dcn20 drm/amd/display: use even ODM slice width for two pixels per container 2024-04-30 09:57:04 -04:00
dcn21 drm/amd/display: Add log_color_state callback to multiple DCNs 2024-04-30 09:52:57 -04:00
dcn30 drm/amd/display: Add log_color_state callback to multiple DCNs 2024-04-30 09:52:57 -04:00
dcn31 drm/amd/display: Add log_color_state callback to multiple DCNs 2024-04-30 09:52:57 -04:00
dcn32 drm/amd/display: use even ODM slice width for two pixels per container 2024-04-30 09:57:04 -04:00
dcn35 drm/amd/display: Revert "dc: Keep VBios pixel rate div setting util next mode set" 2024-04-30 09:54:36 -04:00
dcn201 drm/amd/display: use even ODM slice width for two pixels per container 2024-04-30 09:57:04 -04:00
dcn301 drm/amd/display: Add log_color_state callback to multiple DCNs 2024-04-30 09:52:57 -04:00
dcn302 drm/amd/display: Refactor INIT into component folder 2024-01-03 10:47:29 -05:00
dcn303 drm/amd/display: Refactor INIT into component folder 2024-01-03 10:47:29 -05:00
dcn314 drm/amd/display: use even ODM slice width for two pixels per container 2024-04-30 09:57:04 -04:00
dcn351 drm/amd/display: Revert "dc: Keep VBios pixel rate div setting util next mode set" 2024-04-30 09:54:36 -04:00
dcn401 drm/amd/display: Add new DCN401 sources 2024-04-26 17:23:13 -04:00
Makefile drm/amd/display: Remove legacy code in DC 2024-04-30 09:52:51 -04:00
hw_sequencer.h drm/amd/display: Add misc DC changes for DCN401 2024-04-26 17:23:34 -04:00
hw_sequencer_private.h drm/amd/display: Revert "dc: Keep VBios pixel rate div setting util next mode set" 2024-04-30 09:54:36 -04:00