drm/amd/powerplay: Change assignment for a buffer variable in phm_dispatch_table() v2
The variable "temp_storage" was eventually reassigned with a pointer. Thus omit the explicit initialisation at the beginning. v2: agd: fix coding style Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b4fc5972c1
commit
eb923ea6fa
@ -60,7 +60,7 @@ int phm_dispatch_table(struct pp_hwmgr *hwmgr,
|
|||||||
void *input, void *output)
|
void *input, void *output)
|
||||||
{
|
{
|
||||||
int result = 0;
|
int result = 0;
|
||||||
void *temp_storage = NULL;
|
void *temp_storage;
|
||||||
|
|
||||||
if (hwmgr == NULL || rt_table == NULL) {
|
if (hwmgr == NULL || rt_table == NULL) {
|
||||||
printk(KERN_ERR "[ powerplay ] Invalid Parameter!\n");
|
printk(KERN_ERR "[ powerplay ] Invalid Parameter!\n");
|
||||||
@ -73,6 +73,8 @@ int phm_dispatch_table(struct pp_hwmgr *hwmgr,
|
|||||||
printk(KERN_ERR "[ powerplay ] Could not allocate table temporary storage\n");
|
printk(KERN_ERR "[ powerplay ] Could not allocate table temporary storage\n");
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
temp_storage = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = phm_run_table(hwmgr, rt_table, input, output, temp_storage);
|
result = phm_run_table(hwmgr, rt_table, input, output, temp_storage);
|
||||||
|
Loading…
Reference in New Issue
Block a user