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>
/* Constructor, Destructor */
/*****************************************/
-bool dce_transform_construct(
+void dce_transform_construct(
struct dce_transform *xfm_dce,
struct dc_context *ctx,
uint32_t inst,
xfm_dce->lb_bits_per_entry = LB_BITS_PER_ENTRY;
xfm_dce->lb_memory_size = LB_TOTAL_NUMBER_OF_ENTRIES; /*0x6B0*/
-
- return true;
}
bool prescaler_on;
};
-bool dce_transform_construct(struct dce_transform *xfm_dce,
+void dce_transform_construct(struct dce_transform *xfm_dce,
struct dc_context *ctx,
uint32_t inst,
const struct dce_transform_registers *regs,
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 *dce100_ipp_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(
if (!transform)
return NULL;
- if (dce_transform_construct(transform, ctx, inst,
- &xfm_regs[inst], &xfm_shift, &xfm_mask)) {
- transform->lb_memory_size = 0x1404; /*5124*/
- return &transform->base;
- }
-
- BREAK_TO_DEBUGGER();
- kfree(transform);
- return NULL;
+ dce_transform_construct(transform, ctx, inst,
+ &xfm_regs[inst], &xfm_shift, &xfm_mask);
+ transform->lb_memory_size = 0x1404; /*5124*/
+ return &transform->base;
}
static const struct encoder_feature_support link_enc_feature = {
if (!transform)
return NULL;
- if (dce_transform_construct(transform, ctx, inst,
- &xfm_regs[inst], &xfm_shift, &xfm_mask)) {
- transform->lb_memory_size = 0x1404; /*5124*/
- return &transform->base;
- }
-
- BREAK_TO_DEBUGGER();
- kfree(transform);
- return NULL;
+ dce_transform_construct(transform, ctx, inst,
+ &xfm_regs[inst], &xfm_shift, &xfm_mask);
+ transform->lb_memory_size = 0x1404; /*5124*/
+ return &transform->base;
}
static void dce120_destroy_resource_pool(struct resource_pool **pool)
if (!transform)
return NULL;
- if (dce_transform_construct(transform, ctx, inst,
- &xfm_regs[inst], &xfm_shift, &xfm_mask)) {
- transform->prescaler_on = false;
- return &transform->base;
- }
-
- BREAK_TO_DEBUGGER();
- kfree(transform);
- return NULL;
+ dce_transform_construct(transform, ctx, inst,
+ &xfm_regs[inst], &xfm_shift, &xfm_mask);
+ transform->prescaler_on = false;
+ return &transform->base;
}
static const struct encoder_feature_support link_enc_feature = {