summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2016-09-28 16:04:33 +0800
committerAlex Deucher <alexander.deucher@amd.com>2016-10-04 11:16:00 -0400
commit806c60c2c1d387068dd2b47efdb52aac9a1f75ef (patch)
tree05f09ec5a75797c59cc37f2ab67457e50e747b56 /drivers/gpu/drm
parentc64474e4f72f21aec4ae27eab39b563cfd25561d (diff)
downloadop-kernel-dev-806c60c2c1d387068dd2b47efdb52aac9a1f75ef.zip
op-kernel-dev-806c60c2c1d387068dd2b47efdb52aac9a1f75ef.tar.gz
drm/amdgpu: clean up to set fw_offset as 0 twice
Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
index 7a05f79..cb3d252 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
@@ -273,7 +273,6 @@ int amdgpu_ucode_init_bo(struct amdgpu_device *adev)
amdgpu_bo_unreserve(*bo);
- fw_offset = 0;
for (i = 0; i < AMDGPU_UCODE_ID_MAXIMUM; i++) {
ucode = &adev->firmware.ucode[i];
if (ucode->fw) {
OpenPOWER on IntegriCloud