summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dce110
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-09-29 06:15:59 +0300
committerAlex Deucher <alexander.deucher@amd.com>2017-09-29 20:01:49 +0300
commit5fb005c4583749f54d5bab6622dbed1d2d56c268 (patch)
tree1141452081d6a59964ec7cdd0fde775506bbdb16 /drivers/gpu/drm/amd/display/dc/dce110
parent9cf29399f615fc13732f3c8ba3f5ff47e2ca256d (diff)
downloadlinux-5fb005c4583749f54d5bab6622dbed1d2d56c268.tar.xz
amdgpu/dc: make dce transform constructor void
This never returns anything but true. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce110')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
index 8e3f365177b8..45c5facf79b1 100644
--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
@@ -526,13 +526,9 @@ static struct transform *dce110_transform_create(
if (!transform)
return NULL;
- if (dce_transform_construct(transform, ctx, inst,
- &xfm_regs[inst], &xfm_shift, &xfm_mask))
- return &transform->base;
-
- BREAK_TO_DEBUGGER();
- kfree(transform);
- return NULL;
+ dce_transform_construct(transform, ctx, inst,
+ &xfm_regs[inst], &xfm_shift, &xfm_mask);
+ return &transform->base;
}
static struct input_pixel_processor *dce110_ipp_create(