diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-11-23 02:15:04 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-11-26 17:48:57 +0300 |
commit | 9cb98bb73ef0f01ce9bd52172edf8650374d7c39 (patch) | |
tree | ad383059f6470574d76e45c2910fc5de465fa3d2 /drivers/gpu/drm/radeon/si_dpm.c | |
parent | a63141e31764f8daf3f29e8e2d450dcf9199d1c8 (diff) | |
download | linux-9cb98bb73ef0f01ce9bd52172edf8650374d7c39.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/si_dpm.c')
-rw-r--r-- | drivers/gpu/drm/radeon/si_dpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c index 8148a7883de4..346315b3eebe 100644 --- a/drivers/gpu/drm/radeon/si_dpm.c +++ b/drivers/gpu/drm/radeon/si_dpm.c @@ -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); |