mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 08:04:06 +07:00
drm/amdgpu/dm/mst: Remove unnecessary NULL check
kfree() checks this automatically. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
f8d2d39eb4
commit
d7a1b559f3
@ -144,10 +144,8 @@ dm_dp_mst_connector_destroy(struct drm_connector *connector)
|
||||
struct amdgpu_dm_connector *amdgpu_dm_connector = to_amdgpu_dm_connector(connector);
|
||||
struct amdgpu_encoder *amdgpu_encoder = amdgpu_dm_connector->mst_encoder;
|
||||
|
||||
if (amdgpu_dm_connector->edid) {
|
||||
kfree(amdgpu_dm_connector->edid);
|
||||
amdgpu_dm_connector->edid = NULL;
|
||||
}
|
||||
kfree(amdgpu_dm_connector->edid);
|
||||
amdgpu_dm_connector->edid = NULL;
|
||||
|
||||
drm_encoder_cleanup(&amdgpu_encoder->base);
|
||||
kfree(amdgpu_encoder);
|
||||
|
Loading…
Reference in New Issue
Block a user