drm/amd/powerplay: Delete an unnecessary variable initialisation in phm_dispatch_table()
authorSF Markus Elfring <elfring@users.sourceforge.net>
Sat, 16 Jul 2016 15:10:28 +0000 (17:10 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Jul 2016 18:36:55 +0000 (14:36 -0400)
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>
drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c

index d4225a09e3e845153bf7d3efe4cb8e94a08e2d26..a6abe81bc8435598fbd2b39a05297ac7ed1b24b8 100644 (file)
@@ -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) {