drm/amd/pm: initialize variable

Static analysis reports this problem

amdgpu_pm.c:478:16: warning: The right operand of '<' is a garbage value
for (i = 0; i < data.nums; i++) {
^ ~~~~~~~~~

In some cases data is not set. Initialize to 0 and flag not setting
data as an error with the existing check.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by Tom Rix and committed by Alex Deucher 8651fcb9 c69f2713

+1 -1
+1 -1
drivers/gpu/drm/amd/pm/amdgpu_pm.c
··· 451 451 struct drm_device *ddev = dev_get_drvdata(dev); 452 452 struct amdgpu_device *adev = drm_to_adev(ddev); 453 453 const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; 454 - struct pp_states_info data; 454 + struct pp_states_info data = {0}; 455 455 enum amd_pm_state_type pm = 0; 456 456 int i = 0, ret = 0; 457 457