aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSF Markus Elfring <elfring@users.sourceforge.net>2016-07-16 11:10:28 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-07-29 14:36:55 -0400
commit63edf1b469445e5e254520b0c7b8af6080600892 (patch)
tree75de2c30a6e99e7b4a85948a65016cd3a228473e
parenteb923ea6fa77ac5ec9eca617444d34b179669a2e (diff)
drm/amd/powerplay: Delete an unnecessary variable initialisation in phm_dispatch_table()
The variable "result" will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. 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>
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c b/drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c
index d4225a09e3e8..a6abe81bc843 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c
@@ -59,7 +59,7 @@ int phm_dispatch_table(struct pp_hwmgr *hwmgr,
59 struct phm_runtime_table_header *rt_table, 59 struct phm_runtime_table_header *rt_table,
60 void *input, void *output) 60 void *input, void *output)
61{ 61{
62 int result = 0; 62 int result;
63 void *temp_storage; 63 void *temp_storage;
64 64
65 if (hwmgr == NULL || rt_table == NULL) { 65 if (hwmgr == NULL || rt_table == NULL) {