Colin Ian King 5b2933556f drm/amd/pp: use mlck_table.count for array loop index limit
v2: use temporaries to trivially reduces object size.

The for-loops process data in the mclk_table but use slck_table.count
as the loop index limit.  I believe these are cut-n-paste errors from
the previous almost identical loops as indicated by static analysis.
Fix these.

Detected by CoverityScan, CID#1466001 ("Copy-paste error")

Fixes: 5d97cf39ff24 ("drm/amd/pp: Add and initialize OD_dpm_table for CI/VI.")
Fixes: 5e4d4fbea557 ("drm/amd/pp: Implement edit_dpm_table on smu7")

Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-03-23 09:42:00 -05:00
..
2018-01-30 18:05:25 +01:00
2018-02-06 09:59:40 -08:00
2017-12-27 19:00:09 -05:00
2018-03-14 10:59:16 +10:00
2018-02-19 14:19:04 -05:00
2017-11-15 20:42:10 -08:00
2018-03-14 10:59:16 +10:00
2018-02-28 15:08:56 -05:00
2017-12-19 21:37:24 +10:00
2018-03-14 10:59:16 +10:00
2017-11-23 12:31:49 +02:00
2017-11-15 20:42:10 -08:00
2018-01-25 11:42:25 +10:00
2018-01-24 15:49:04 -05:00