drm/amd/powerplay: refine code in vega10_smumgr.c
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 2 May 2017 08:01:00 +0000 (16:01 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 May 2017 22:11:35 +0000 (18:11 -0400)
commitef181f268e0e8d868f353b764799d96d6a8a2d86
treea85f7c804a1777d6b29d0fca4d8086bbe907e836
parent43b9176faae1543d1a190db8eb098a8284d364f3
drm/amd/powerplay: refine code in vega10_smumgr.c

1. return error code instand of -1.
2. print msg info if send msg failed

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c