Commit 54915fee authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu/powerplay/tonga: return an error if copying to smc fails



Rather than just silently dropping it.  Also fixes a set but
unused variable warning.

Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3fabf0fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}