1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/dc
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
..
basics drm/amd/display: Drop unnecessary header 2024-02-22 10:26:08 -05:00
bios drm/amd/display: Atom Integrated System Info v2_2 for DCN35 2024-04-30 09:46:08 -04:00
clk_mgr drm/amd/display: Remove duplicate dcn401/dcn401_clk_mgr.h header 2024-04-30 10:03:15 -04:00
core drm/amd/display: re-indent dc_power_down_on_boot() 2024-05-02 15:40:26 -04:00
dce drm/amd/display: Add misc DC changes for DCN401 2024-04-26 17:23:34 -04:00
dce60 kbuild: make -Woverride-init warnings more consistent 2024-03-31 11:32:26 +09:00
dce80 drm/amd/display: use even ODM slice width for two pixels per container 2024-04-30 09:57:04 -04:00
dce110 drm/amd/display: use even ODM slice width for two pixels per container 2024-04-30 09:57:04 -04:00
dce112 kbuild: make -Woverride-init warnings more consistent 2024-03-31 11:32:26 +09:00
dce120 drm/amd/display: use even ODM slice width for two pixels per container 2024-04-30 09:57:04 -04:00
dcn10 drm/amd/display: Refactor HUBBUB into component folder 2024-04-30 09:56:31 -04:00
dcn20 drm/amd/display: Refactor HUBBUB into component folder 2024-04-30 09:56:31 -04:00
dcn21 drm/amd/display: Refactor HUBBUB into component folder 2024-04-30 09:56:31 -04:00
dcn30 drm/amd/display: Refactor HUBBUB into component folder 2024-04-30 09:56:31 -04:00
dcn31 drm/amd/display: Refactor HUBBUB into component folder 2024-04-30 09:56:31 -04:00
dcn32 drm/amd/display: For FPO + Vactive check that all pipes support VA 2024-04-30 09:56:50 -04:00
dcn35 drm/amd/display: Refactor HUBBUB into component folder 2024-04-30 09:56:31 -04:00
dcn201 drm/amd/display: Refactor HUBBUB into component folder 2024-04-30 09:56:31 -04:00
dcn301 drm/amd/display: Refactor HUBBUB into component folder 2024-04-30 09:56:31 -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: Revert "dc: Keep VBios pixel rate div setting util next mode set" 2024-04-30 09:54:36 -04:00
dcn321 drm/amd/display: Code style adjustments 2024-04-26 17:22:45 -04:00
dcn401 drm/amd/display: Add new DCN401 sources 2024-04-26 17:23:13 -04:00
dml drm/amd/display: For FPO + Vactive check that all pipes support VA 2024-04-30 09:56:50 -04:00
dml2 drm/amd/display: Fix spelling various spelling mistakes 2024-05-02 15:40:04 -04:00
dpp drm/amd/display: re-indent dpp401_dscl_program_isharp() 2024-04-30 09:59:44 -04:00
dsc drm/amd/display: take ODM slice count into account when deciding DSC slice 2024-04-30 09:54:05 -04:00
gpio drm/amd/display: Update comments in DC 2024-04-30 09:44:55 -04:00
hdcp drm/amd/display: Adjust codestyle for dcn31 and hdcp_msg 2024-04-30 09:52:15 -04:00
hubbub drm/amd/display: Refactor HUBBUB into component folder 2024-04-30 09:56:31 -04:00
hwss drm/amd/display: Remove redundant NULL check in dcn10_set_input_transfer_func 2024-05-02 15:43:25 -04:00
inc drm/amd/display: Remove duplicate spl/dc_spl_types.h header 2024-04-30 10:03:06 -04:00
irq drm/amd/display: Add misc DC changes for DCN401 2024-04-26 17:23:34 -04:00
link drm/amd/display: Change ASSR disable sequence 2024-04-30 09:57:29 -04:00
optc drm/amd/display: use even ODM slice width for two pixels per container 2024-04-30 09:57:04 -04:00
resource drm/amd/display: Enable Replay for DCN315 2024-04-30 09:57:11 -04:00
spl drm/amd/display: Add new DCN401 sources 2024-04-26 17:23:13 -04:00
virtual drm/amd/display: make virtual_disable_link_output static 2022-10-11 11:32:59 -04:00
dc.h drm/amd/display: 3.2.283 2024-04-30 09:57:51 -04:00
dc_bios_types.h drm/amd/display: Add misc DC changes for DCN401 2024-04-26 17:23:34 -04:00
dc_ddc_types.h drm/amd/display: move public dc link function implementation to dc_link_exports 2023-02-14 16:06:28 -05:00
dc_dmub_srv.c drm/amd/display: Notify idle link detection through shared state 2024-04-30 09:57:17 -04:00
dc_dmub_srv.h drm/amd/display: Notify idle link detection through shared state 2024-04-30 09:57:17 -04:00
dc_dp_types.h drm/amd/display: expand the non standard link rate for testing 2024-04-09 22:15:52 -04:00
dc_dsc.h drm/amd/display: Add link encoding to timing BW calculation parameters 2023-07-18 11:15:51 -04:00
dc_edid_parser.c drm/amd/display: Add Freesync HDMI support to DMCU 2021-02-02 12:11:41 -05:00
dc_edid_parser.h drm/amd/display: Add Freesync HDMI support to DMCU 2021-02-02 12:11:41 -05:00
dc_hdmi_types.h drm/amd/display/dc/dc_hdmi_types: Move string definition to the only file it's used in 2023-03-22 00:47:59 -04:00
dc_helper.c drm/amd/display: Add misc DC changes for DCN401 2024-04-26 17:23:34 -04:00
dc_hw_types.h drm/amd/display: Add misc DC changes for DCN401 2024-04-26 17:23:34 -04:00
dc_plane.h drm/amd/display: Refactor DML2 interfaces 2024-03-27 01:36:37 -04:00
dc_plane_priv.h drm/amd/display: Add driver support for future FAMS versions 2024-04-09 22:15:26 -04:00
dc_spl_translate.c drm/amd/display: Add new DCN401 sources 2024-04-26 17:23:13 -04:00
dc_spl_translate.h drm/amd/display: Add new DCN401 sources 2024-04-26 17:23:13 -04:00
dc_stat.h drm/amd/display: DMUB Outbound Interrupt Process-X86 2021-07-08 15:14:36 -04:00
dc_state.h drm/amd/display: Add handling for DC power mode 2024-04-09 22:04:51 -04:00
dc_state_priv.h drm/amd/display: Add misc DC changes for DCN401 2024-04-26 17:23:34 -04:00
dc_stream.h drm/amd/display: Do cursor programming with rest of pipe 2024-04-30 09:51:30 -04:00
dc_stream_priv.h drm/amd/display: Block FPO According to Luminance Delta 2024-04-30 09:46:37 -04:00
dc_trace.h drm/amd/display: Add events log to trace OPTC lock and unlock 2022-10-24 14:36:06 -04:00
dc_types.h drm/amd/display: Refactor for Replay Link off frame count 2024-04-30 09:53:12 -04:00
dm_cp_psp.h drm/amd/display: Trivial code style adjustment 2024-02-07 12:26:23 -05:00
dm_event_log.h
dm_helpers.h drm/amd/display: Code style adjustments 2024-04-26 17:22:45 -04:00
dm_pp_smu.h drm/amd/display: Add missing SMU version 2024-04-30 09:52:08 -04:00
dm_services.h drm/amd/display: Add dummy interface for tracing DCN32 SMU messages 2024-04-09 22:03:13 -04:00
dm_services_types.h drm/amd/display: refactor dmub commands into single function 2023-04-18 16:28:52 -04:00
irq_types.h drm/amd/display: Add missing IRQ types 2024-04-30 09:45:11 -04:00
Makefile drm/amd/display: Refactor HUBBUB into component folder 2024-04-30 09:56:31 -04:00
os_types.h drm/amd/display: Remove legacy code in DC 2024-04-30 09:52:51 -04:00