mirror of
https://github.com/torvalds/linux.git
synced 2026-04-23 09:05:50 -04:00
amdgpu/dc: remove pointless returns in the i2caux constructor paths. (v2)
There was lots of return true, and error checking that was never used in these paths. Just remove it all. v2: I missed one return 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>
This commit is contained in:
committed by
Alex Deucher
parent
4179cd8137
commit
b08c3ca4e9
@@ -108,18 +108,11 @@ struct i2caux *dal_i2caux_dce120_create(
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (dal_i2caux_dce110_construct(
|
||||
i2caux_dce110,
|
||||
ctx,
|
||||
dce120_aux_regs,
|
||||
dce120_hw_engine_regs,
|
||||
&i2c_shift,
|
||||
&i2c_mask))
|
||||
return &i2caux_dce110->base;
|
||||
|
||||
ASSERT_CRITICAL(false);
|
||||
|
||||
kfree(i2caux_dce110);
|
||||
|
||||
return NULL;
|
||||
dal_i2caux_dce110_construct(i2caux_dce110,
|
||||
ctx,
|
||||
dce120_aux_regs,
|
||||
dce120_hw_engine_regs,
|
||||
&i2c_shift,
|
||||
&i2c_mask);
|
||||
return &i2caux_dce110->base;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user