mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
drm/radeon: remove redundant assignment to reg
The pointer reg is being assigned a value that is not read, the exit path via label 'out' never accesses it. The assignment is redundant and can be removed. Cleans up clang scan build warning: drivers/gpu/drm/radeon/radeon_object.c:570:3: warning: Value stored to 'reg' is never read [deadcode.DeadStores] Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
430e6a0212
commit
ee2016b4b5
1 changed files with 0 additions and 1 deletions
|
@ -567,7 +567,6 @@ int radeon_bo_get_surface_reg(struct radeon_bo *bo)
|
|||
return 0;
|
||||
|
||||
if (bo->surface_reg >= 0) {
|
||||
reg = &rdev->surface_regs[bo->surface_reg];
|
||||
i = bo->surface_reg;
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue