Skip to content

Commit 1697398

Browse files
Ray6161alexdeucher
authored andcommitted
drm/amd/display: Remove duplicated code
[Why&How] Remove duplicated code Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Tom Chung <chiahsuan.chung@amd.com> Signed-off-by: Ray Wu <ray.wu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 219be47 commit 1697398

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,9 +1900,6 @@ static bool dcn35_resource_construct(
19001900
dc->caps.num_of_host_routers = 2;
19011901
dc->caps.num_of_dpias_per_host_router = 2;
19021902

1903-
dc->caps.num_of_host_routers = 2;
1904-
dc->caps.num_of_dpias_per_host_router = 2;
1905-
19061903
/* max_disp_clock_khz_at_vmin is slightly lower than the STA value in order
19071904
* to provide some margin.
19081905
* It's expected for furture ASIC to have equal or higher value, in order to

drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,9 +1872,6 @@ static bool dcn351_resource_construct(
18721872
dc->caps.num_of_host_routers = 2;
18731873
dc->caps.num_of_dpias_per_host_router = 2;
18741874

1875-
dc->caps.num_of_host_routers = 2;
1876-
dc->caps.num_of_dpias_per_host_router = 2;
1877-
18781875
/* max_disp_clock_khz_at_vmin is slightly lower than the STA value in order
18791876
* to provide some margin.
18801877
* It's expected for furture ASIC to have equal or higher value, in order to

drivers/gpu/drm/amd/display/dc/resource/dcn36/dcn36_resource.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,9 +1873,6 @@ static bool dcn36_resource_construct(
18731873
dc->caps.num_of_host_routers = 2;
18741874
dc->caps.num_of_dpias_per_host_router = 2;
18751875

1876-
dc->caps.num_of_host_routers = 2;
1877-
dc->caps.num_of_dpias_per_host_router = 2;
1878-
18791876
/* max_disp_clock_khz_at_vmin is slightly lower than the STA value in order
18801877
* to provide some margin.
18811878
* It's expected for furture ASIC to have equal or higher value, in order to

0 commit comments

Comments
 (0)