drm/radeon: remove redundant assignment to variable ret
The variable ret is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
a63141e317
commit
9cb98bb73e
@ -5899,7 +5899,7 @@ static int si_patch_single_dependency_table_based_on_leakage(struct radeon_devic
|
||||
|
||||
static int si_patch_dependency_tables_based_on_leakage(struct radeon_device *rdev)
|
||||
{
|
||||
int ret = 0;
|
||||
int ret;
|
||||
|
||||
ret = si_patch_single_dependency_table_based_on_leakage(rdev,
|
||||
&rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk);
|
||||
|
Loading…
Reference in New Issue
Block a user