]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Remove redundant NULL check
authorLi Heng <liheng40@huawei.com>
Thu, 23 Jul 2020 03:27:43 +0000 (11:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Jul 2020 14:45:10 +0000 (10:45 -0400)
commite06ca728587f6d82d5a49996b25835042e5f81a0
treeddac764bda67828c674190f8a549088eae709728
parentbd1c8096692530bbe1d904ea6e3f1c25464451b4
drm/amdgpu: Remove redundant NULL check

Fix below warnings reported by coccicheck:
./drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:557:2-7: WARNING: NULL check before some freeing functions is not needed.

Fixes: 6ca9531c4714 ("drm/amd/display: Add DCN3 CLK_MGR")
Signed-off-by: Li Heng <liheng40@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c