Skip to contentSkip to conversation

drm/amdgpu: clean up to set fw_offset as 0 twice

PATCH In review Huang Rui 2 participants 2 messages Sep 28, 2016 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Huang Rui

author
#0 lore raw

PATCH 1/1 drm/amdgpu: clean up to set fw_offset as 0 twice

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0 -1
index 7a05f79..cb3d252 100644
@@ -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) {
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1475050058-3468-1-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw
Quoted 1 line · Huang Rui
Quoted 19 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +0 -2
index 7a05f79..cb3d252 100644
@@ -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) {
--

2.7.4

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx