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)
commitcc0e7ff8ffe01653a078824594e32be114414035
treeddac764bda67828c674190f8a549088eae709728
parentc5a4ef3e20da16829bf417fb2093824c1bc0f82f
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: 4d55b0dd1cdd ("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