Skip to content

Commit b848fe6

Browse files
committed
drm/amdgpu/gfx11: 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 d78e816 commit b848fe6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4373,16 +4373,14 @@ static int gfx_v11_0_hw_init(void *handle)
43734373
static int gfx_v11_0_hw_fini(void *handle)
43744374
{
43754375
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
4376-
int r;
43774376

43784377
amdgpu_irq_put(adev, &adev->gfx.cp_ecc_error_irq, 0);
43794378
amdgpu_irq_put(adev, &adev->gfx.priv_reg_irq, 0);
43804379
amdgpu_irq_put(adev, &adev->gfx.priv_inst_irq, 0);
43814380

43824381
if (!adev->no_hw_access) {
43834382
if (amdgpu_async_gfx_ring) {
4384-
r = amdgpu_gfx_disable_kgq(adev, 0);
4385-
if (r)
4383+
if (amdgpu_gfx_disable_kgq(adev, 0))
43864384
DRM_ERROR("KGQ disable failed\n");
43874385
}
43884386

0 commit comments

Comments
 (0)