]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: Remove useless variable
authorGeorgiana Chelu <georgiana.chelu93@gmail.com>
Tue, 17 Oct 2017 20:22:08 +0000 (23:22 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:27:22 +0000 (15:27 -0400)
commitdf3f7912bdcadc7246e411b4f85fe6ba43faddf8
tree9d2d1f01bd182b89ef294fa6e5b65e3df11a6692
parent58a14e98ecc9b52a2b98ba49da5e1256f014dfe0
drm/amd/powerplay: Remove useless variable

The result variable is initialized at the beginning of the function, but
its value does not change during the function execution. Thus, remove the
variable and return the SUCCESS value, which is 0.

Issue found by coccinelle script:
* Unneeded variable: "result". Return "0"

Path to the cocci script: scripts/coccinelle/misc/returnvar.cocci

Signed-off-by: Georgiana Chelu <georgiana.chelu93@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c