diff options
| author | Evan Quan <[email protected]> | 2017-08-10 08:12:45 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-08-15 18:46:21 +0000 |
| commit | 02dc13e450cb9f70a588bebbfcb17826d5d7bc05 (patch) | |
| tree | 76835ccf8625609fb3ca6ee55d6cfb517b8747e9 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | drm/amdgpu: fix missing endian-safe guard (diff) | |
| download | kernel-02dc13e450cb9f70a588bebbfcb17826d5d7bc05.tar.gz kernel-02dc13e450cb9f70a588bebbfcb17826d5d7bc05.zip | |
drm/amdgpu: jt_size was wrongly counted twice
Signed-off-by: Evan Quan <[email protected]>
Signed-off-by: Huang Rui <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c index d3468a2d8839..36c763310df5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c @@ -358,8 +358,6 @@ static int amdgpu_ucode_patch_jt(struct amdgpu_firmware_info *ucode, (le32_to_cpu(header->jt_offset) * 4); memcpy(dst_addr, src_addr, le32_to_cpu(header->jt_size) * 4); - ucode->ucode_size += le32_to_cpu(header->jt_size) * 4; - return 0; } |
