]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/amdgpu: clean up to set fw_offset as 0 twice
authorHuang Rui <ray.huang@amd.com>
Wed, 28 Sep 2016 08:04:33 +0000 (16:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Oct 2016 15:16:00 +0000 (11:16 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c

index 7a05f79818f1a6a3cfbb3179ef03d36bd92436ec..cb3d252f3c78cb03b30252e4b558ccd5c1b6b866 100644 (file)
@@ -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) {