Skip to content

Commit d78e816

Browse files
committed
drm/amdgpu/gfx10: drop unused variable
Just check the return value directly. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 5a0510d commit d78e816

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7159,15 +7159,13 @@ static int gfx_v10_0_hw_init(void *handle)
71597159
static int gfx_v10_0_hw_fini(void *handle)
71607160
{
71617161
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
7162-
int r;
71637162

71647163
amdgpu_irq_put(adev, &adev->gfx.priv_reg_irq, 0);
71657164
amdgpu_irq_put(adev, &adev->gfx.priv_inst_irq, 0);
71667165

71677166
if (!adev->no_hw_access) {
71687167
if (amdgpu_async_gfx_ring) {
7169-
r = amdgpu_gfx_disable_kgq(adev, 0);
7170-
if (r)
7168+
if (amdgpu_gfx_disable_kgq(adev, 0))
71717169
DRM_ERROR("KGQ disable failed\n");
71727170
}
71737171

0 commit comments

Comments
 (0)