diff options
| author | Tom Rix <[email protected]> | 2021-04-30 17:16:54 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-05-04 21:38:05 +0000 |
| commit | 8651fcb9873be097bb6fe8542bfb6089020726ae (patch) | |
| tree | 80d56f5041800814794c027df30a2abe44966700 /lib/bitmap.c | |
| parent | drm/radeon: Avoid power table parsing memory leaks (diff) | |
| download | kernel-8651fcb9873be097bb6fe8542bfb6089020726ae.tar.gz kernel-8651fcb9873be097bb6fe8542bfb6089020726ae.zip | |
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 <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions
