commit | 8651fcb9873be097bb6fe8542bfb6089020726ae | [log] [tgz] |
---|---|---|
author | Tom Rix <trix@redhat.com> | Fri Apr 30 10:16:54 2021 -0700 |
committer | Alex Deucher <alexander.deucher@amd.com> | Tue May 04 17:38:05 2021 -0400 |
tree | 80d56f5041800814794c027df30a2abe44966700 | |
parent | c69f27137a38d24301a6b659454a91ad85dff4aa [diff] |
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>