mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
drm/amd/powerplay: Minor fixes in processpptables.c (v2)
Reported by smatch: init_overdrive_limits() error: uninitialized symbol 'result'. get_clock_voltage_dependency_table() warn: inconsistent indenting v2: set result to 0 (Alex) Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Ernst Sjöstrand <ernstp@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
235943189d
commit
19fef71cd1
1 changed files with 3 additions and 3 deletions
|
@ -394,8 +394,8 @@ static int get_clock_voltage_dependency_table(struct pp_hwmgr *hwmgr,
|
||||||
dep_table->entries[i].clk =
|
dep_table->entries[i].clk =
|
||||||
((unsigned long)table->entries[i].ucClockHigh << 16) |
|
((unsigned long)table->entries[i].ucClockHigh << 16) |
|
||||||
le16_to_cpu(table->entries[i].usClockLow);
|
le16_to_cpu(table->entries[i].usClockLow);
|
||||||
dep_table->entries[i].v =
|
dep_table->entries[i].v =
|
||||||
(unsigned long)le16_to_cpu(table->entries[i].usVoltage);
|
(unsigned long)le16_to_cpu(table->entries[i].usVoltage);
|
||||||
}
|
}
|
||||||
|
|
||||||
*ptable = dep_table;
|
*ptable = dep_table;
|
||||||
|
@ -1042,7 +1042,7 @@ static int init_overdrive_limits_V2_1(struct pp_hwmgr *hwmgr,
|
||||||
static int init_overdrive_limits(struct pp_hwmgr *hwmgr,
|
static int init_overdrive_limits(struct pp_hwmgr *hwmgr,
|
||||||
const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table)
|
const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table)
|
||||||
{
|
{
|
||||||
int result;
|
int result = 0;
|
||||||
uint8_t frev, crev;
|
uint8_t frev, crev;
|
||||||
uint16_t size;
|
uint16_t size;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue