]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/amdgpu/powerplay/tonga: return an error if copying to smc fails
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Nov 2020 23:06:49 +0000 (18:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Dec 2020 22:37:15 +0000 (17:37 -0500)
Rather than just silently dropping it.  Also fixes a set but
unused variable warning.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c

index 4bfadb49521bcedbaea683df4c6325c1d4bca795..04b561f5d932bc2620a7436befc6c759ef9bdf31 100644 (file)
@@ -2545,7 +2545,7 @@ static int tonga_thermal_setup_fan_table(struct pp_hwmgr *hwmgr)
                                        (uint32_t)sizeof(fan_table),
                                        SMC_RAM_END);
 
-       return 0;
+       return res;
 }