From 63edf1b469445e5e254520b0c7b8af6080600892 Mon Sep 17 00:00:00 2001 From: SF Markus Elfring Date: Sat, 16 Jul 2016 17:10:28 +0200 Subject: [PATCH] drm/amd/powerplay: Delete an unnecessary variable initialisation in phm_dispatch_table() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Markus Elfring Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c b/drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c index d4225a0..a6abe81 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, struct phm_runtime_table_header *rt_table, void *input, void *output) { - int result = 0; + int result; void *temp_storage; if (hwmgr == NULL || rt_table == NULL) { -- 2.7.4