drm/amd/display: Simplify dm_late_init()
authorTom St Denis <tom.stdenis@amd.com>
Tue, 17 Oct 2017 12:47:25 +0000 (08:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:53:06 +0000 (16:53 -0400)
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 58143fe49e4a1d282711ce209e08fe160eab243f..d8fcf24a041efd40e94a5fea6fd887202bb2fd8b 100644 (file)
@@ -538,9 +538,8 @@ static int detect_mst_link_for_all_connectors(struct drm_device *dev)
 static int dm_late_init(void *handle)
 {
        struct drm_device *dev = ((struct amdgpu_device *)handle)->ddev;
-       int r = detect_mst_link_for_all_connectors(dev);
 
-       return r;
+       return detect_mst_link_for_all_connectors(dev);
 }
 
 static void s3_handle_mst(struct drm_device *dev, bool suspend)