drm/amd/display: Remove needless cast in amdgpu_dm_connector_init()
authorTom St Denis <tom.stdenis@amd.com>
Tue, 17 Oct 2017 14:40:08 +0000 (10:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:53:42 +0000 (16:53 -0400)
The cast of dc_link is redundant.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Acked-by: Andrey Grodzovsky <andey.grodzovsky@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index d7fc237851c5c6e014181df5a7c6e69a5711e619..6ef71e192845f7023ec48b123db293a3f0a1607c 100644 (file)
@@ -3460,7 +3460,8 @@ static int amdgpu_dm_connector_init(struct amdgpu_display_manager *dm,
        struct dc *dc = dm->dc;
        struct dc_link *link = dc_get_link_at_index(dc, link_index);
        struct amdgpu_i2c_adapter *i2c;
-       ((struct dc_link *)link)->priv = aconnector;
+
+       link->priv = aconnector;
 
        DRM_DEBUG_DRIVER("%s()\n", __func__);