drm/amd/powerplay: fixed uninitialized value
authorEvan Quan <evan.quan@amd.com>
Thu, 19 Jul 2018 05:21:43 +0000 (13:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Jul 2018 18:56:43 +0000 (13:56 -0500)
commit1ce0688f3f6a9e9d34ae66bf779d54855def7bec
tree7a44b70ea9084f18af3431244b455f3d6aa85ff5
parentc64fb6dade1637e80ab316be42a271747ac4033b
drm/amd/powerplay: fixed uninitialized value

The 'result' is not initialized correctly. It causes the API
return an error code even on success.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c