aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-09-29 13:16:00 +1000
committerAlex Deucher <alexander.deucher@amd.com>2017-09-29 13:01:55 -0400
commit99913a171d00b2d4c94127a9e38e5457bc45635d (patch)
tree41751defb6b86d0afe78d0653dd20cc08e058582 /drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
parentamdgpu/dc: make dce transform constructor void (diff)
downloadlinux-dev-99913a171d00b2d4c94127a9e38e5457bc45635d.tar.xz
linux-dev-99913a171d00b2d4c94127a9e38e5457bc45635d.zip
amdgpu/dc: make dce80 timing generator construct return void.
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/dce80/dce80_resource.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c b/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
index db8afb6491cd..5e00ca6a1292 100644
--- a/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
@@ -404,12 +404,8 @@ static struct timing_generator *dce80_timing_generator_create(
if (!tg110)
return NULL;
- if (dce80_timing_generator_construct(tg110, ctx, instance, offsets))
- return &tg110->base;
-
- BREAK_TO_DEBUGGER();
- kfree(tg110);
- return NULL;
+ dce80_timing_generator_construct(tg110, ctx, instance, offsets);
+ return &tg110->base;
}
static struct output_pixel_processor *dce80_opp_create(