diff options
| author | 2020-09-21 21:10:13 +0800 | |
|---|---|---|
| committer | 2020-09-22 17:37:37 -0400 | |
| commit | da51e50d454dbfd92f1426b5674fef5f3e229ab1 (patch) | |
| tree | a9bdd91287220e34c8f2d0c0834a7ef78b36fbba /drivers/gpu/drm/amd/amdgpu/cik_ih.c | |
| parent | drm/amdgpu/mes: simplify the return expression of mes_v10_1_ring_init (diff) | |
| download | linux-dev-da51e50d454dbfd92f1426b5674fef5f3e229ab1.tar.xz linux-dev-da51e50d454dbfd92f1426b5674fef5f3e229ab1.zip | |
drm/amdgpu: simplify the return expression
Simplify the return expression.
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cik_ih.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/cik_ih.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/cik_ih.c b/drivers/gpu/drm/amd/amdgpu/cik_ih.c index 401c99f0b2d0..db953e95f3d2 100644 --- a/drivers/gpu/drm/amd/amdgpu/cik_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/cik_ih.c @@ -316,14 +316,9 @@ static int cik_ih_sw_fini(void *handle) static int cik_ih_hw_init(void *handle) { - int r; struct amdgpu_device *adev = (struct amdgpu_device *)handle; - r = cik_ih_irq_init(adev); - if (r) - return r; - - return 0; + return cik_ih_irq_init(adev); } static int cik_ih_hw_fini(void *handle) |
