drm/amd/pm: Remove unneeded result variable
authorye xingchen <ye.xingchen@zte.com.cn>
Tue, 20 Sep 2022 06:36:00 +0000 (06:36 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Sep 2022 16:42:46 +0000 (12:42 -0400)
commit48c35c428c7feb06761dbc398139eb7e697c6608
treec2af5bd590c750b0ee479f0b9df43eaf4c6653c4
parentfe6f695d8d03f98a04f6ce6f6e8eb8e4d0c450fc
drm/amd/pm: Remove unneeded result variable

Return the value atomctrl_initialize_mc_reg_table_v2_2() directly instead
of storing it in another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c