From: Evan Quan Date: Thu, 10 Aug 2017 08:12:45 +0000 (+0800) Subject: drm/amdgpu: jt_size was wrongly counted twice X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=02dc13e450cb9f70a588bebbfcb17826d5d7bc05;p=openwrt%2Fstaging%2Fblogic.git drm/amdgpu: jt_size was wrongly counted twice Signed-off-by: Evan Quan Signed-off-by: Huang Rui Acked-by: Alex Deucher Signed-off-by: Alex Deucher --- 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; }