OSDN Git Service

drm/amdgpu: Repeat assignment to max_slave_planes
authorZhiJie.Zhang <zhangzhijie@loongson.cn>
Thu, 14 Jan 2021 07:47:55 +0000 (15:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Jan 2021 18:20:21 +0000 (13:20 -0500)
Signed-off-by: ZhiJie.Zhang <zhangzhijie@loongson.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c

index 73a924e..d7fcc5c 100644 (file)
@@ -1272,7 +1272,6 @@ static bool underlay_create(struct dc_context *ctx, struct resource_pool *pool)
 
        /* update the public caps to indicate an underlay is available */
        ctx->dc->caps.max_slave_planes = 1;
-       ctx->dc->caps.max_slave_planes = 1;
 
        return true;
 }