drm/amd/powerplay: Remove unneeded variable 'ret' in amdgpu_smu.c
authorzhengbin <zhengbin13@huawei.com>
Wed, 27 Nov 2019 09:33:42 +0000 (17:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Dec 2019 22:55:08 +0000 (17:55 -0500)
commitc7d5dfa88bc4e5a05d664eff04f6981f9fdf872d
tree62742fade0b18fb2822eb3b134ee3521a4c5ae61
parent3d218c31843ef27faf5a9169bf4176651216fd77
drm/amd/powerplay: Remove unneeded variable 'ret' in amdgpu_smu.c

Fixes coccicheck warning:

drivers/gpu/drm/amd/powerplay/amdgpu_smu.c:1192:5-8: Unneeded variable: "ret". Return "0" on line 1195
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c:1945:5-8: Unneeded variable: "ret". Return "0" on line 1961

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c